|Nov 3, 2010, 08:47 PM||#1|
Mouse Dragged and view getting away too much
Not sure how to say this but in my program i have some nsviews which change position when the mouse is dragged on them (click on the view, drag and it follows with the same offset that it had when you clicked on it)
works fine... except for when you drag the mouse really fast back and forward.
eventually the view has a massive offset from the mouse
i've moving the view using the NSEvent's deltaX and deltaY, in one of the apple sample codes (i think it's sketch?) it does the same but it never has this problem.
any idea whats happening?
|Nov 3, 2010, 11:48 PM||#2|
Another way to do it would be to save the location of the starting click, and the original position of the view, then when the mouse is moved, set the window frame to originalPosition + mouseMove - mouseStartClick.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|I dragged out my Dreamcast this weekend||blesscheese||Console Games||5||Jun 12, 2013 09:21 AM|
|Command-dragged files into black hole||rbtroj||OS X 10.8 Mountain Lion||3||Apr 12, 2013 09:34 PM|
|What the way create dragged image||roma86||Mac Programming||3||Oct 31, 2012 01:09 PM|
|Tab view Safari not working with Magic Mouse?||domovla||OS X 10.8 Mountain Lion||0||Sep 19, 2012 04:31 AM|
|I manually manage music..I dragged some songs to my iPhone but no artwork||aliensarecool||iPhone||8||Jul 7, 2012 10:18 AM|
All times are GMT -5. The time now is 10:02 AM.