You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if we use mouse joint then for some reason "createDragJoint" is always called before a mouse_down in Input class
so then Input.mousePos contains invalid coord when createDragJoint called
Calling Input.initialize before World.create won't help.
Workaround is to listen for Input's mouse_down in capture phase
(Input.as, line 49:
s.addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown, true, 0, true);
)
Not sure if this a good way to fix it..
The text was updated successfully, but these errors were encountered:
If we use box2d on a mobile device:
Calling Input.initialize before World.create won't help.
Workaround is to listen for Input's mouse_down in capture phase
(Input.as, line 49:
s.addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown, true, 0, true);
)
Not sure if this a good way to fix it..
The text was updated successfully, but these errors were encountered: