mouseUp event being called when mouse is still down.
by Matt Ahrens · in Torque Game Builder · 10/24/2010 (12:10 am) · 1 replies
I am making some dragable sceneobjects in my game, and when you are dragging one of them over a certain one the mouseUp event is being called when the mouse is still down. Is this a bug? or am i doing something wrong.
Torque Owner RollerJesus
Dream. Build. Repeat.
The mouseDown callback is fired on the item you clicked and dragged but when you drag it over another object, the engine thinks that you've released the mouse button because the new object gains focus.
The work around would be to capture the mouseDown on the scenegraph, then use the pickRect to determine which object was clicked. When you drag it over another object, you will have the option to choose between the multiple objects.