Hi All, can i ask how to limite a drag function to a single direction? which means I only can drag the button to left, it won't be able to drag to right.
Please take a look the attached file.
Appreciate for your help:D
Printable View
Hi All, can i ask how to limite a drag function to a single direction? which means I only can drag the button to left, it won't be able to drag to right.
Please take a look the attached file.
Appreciate for your help:D
when you set your drag parameters...
keep updating the drag var to be the current position
I would say probably doing so onMouseMove()..
Hi whispers, thanks for your reply, i have made some emendation, currently it works fine if i drag button to left and MouseUp, it won't be able to drag to right side, but while im dragging the button it still free to move both left and right direction, is there any way to set a limitation for that?
Thanks a lot!:)
try updating it more frequently..like onMouseMove();
(like I suggested in my previous post) ;)
:D
Thanks, buddy, I will try it :D