How to determine when mouseDragged has finished
in
Programming Questions
•
1 year ago
Hey guys,
I have written some code where it will display some data on the screen. I have broken up the data into three rows and I want to be able to change their position by changing their Y direction variable... Let me show you what I mean.
So as you can see this piece of text will change its height as I increase or decrease the variable RDy.
Here is the (unfinished) screen layout for reference...
Basically what I want to know is, if the mouse is between a specific bound and is dragged into another bound, how can I determine where the mouse has been released in order to increment or decrement the variable RDy to control the row in which the data is being displayed.
Also if anyone has a better idea of how to do this, please by all means let me know.
-Adrian
I have written some code where it will display some data on the screen. I have broken up the data into three rows and I want to be able to change their position by changing their Y direction variable... Let me show you what I mean.
- text ("Truck turnaround time: ", width/12, RDy*4*height/20 + height/9);
So as you can see this piece of text will change its height as I increase or decrease the variable RDy.
Here is the (unfinished) screen layout for reference...

Basically what I want to know is, if the mouse is between a specific bound and is dragged into another bound, how can I determine where the mouse has been released in order to increment or decrement the variable RDy to control the row in which the data is being displayed.
Also if anyone has a better idea of how to do this, please by all means let me know.
-Adrian
1