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
…the Sprites anchor when limiting the drag (thanks @unindented#1593)
InputHandler.enableDrag with a boundsSprite set now takes into account both the Sprites anchor and the boundsSprite anchor when limiting the drag.
If I have the following:
I can only drag my paddles so far down:
The opposite happens when I drag up: the paddles are able to move beyond the world boundaries by half their height.
If I comment out
paddle.anchor.setTo(0.5)
then everything works as expected.Is this a bug in
enableDrag
, or am I supposed to deal with it in my code?The text was updated successfully, but these errors were encountered: