for every mouse_drag or mouse_click event, i am checking if the previous cursor coords or the current ones are in the box,
i am keeping track of the prev coords by at the end of the loop setting them to the current one, i need this because when i started dragging inside the box and then moved my cursor while dragging out of the box it would not see that its dragging anymore because its outside.
so the problem is that it only checks if the cursor is in the box or the prev cursor every mouse click or drag, so what happens is, i release the box and the prev coords stay in the box of course, so the next time i click it will move the box to where i clicked, and not dragged. and as you can image, this keeps happening until the universe ends( or my laptop runs out of juice )
i know i have done it before but i just cant find my old code back.
i dont care if you fix my current system or make a new system to drag the boxes around.
since i dont want to spoil to much of the project i am working on, i will only post this bit of code that is relevant
Spoiler
Edited by wilcomega, 25 August 2014 - 05:39 PM.











