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 you mouse down on the PlayCanvas canvas but then move the mouse outside the bounds of the canvas and mouse up, PlayCanvas still reports the button as pressed (via the isPressed function).
Perhaps we should be capturing the mouse (see Element.setCapture docs) internally in the engine.
The text was updated successfully, but these errors were encountered:
With change 7dcc7dc we have possibility to catch any scenarios outside of canvas.
We need to decide wether moving mouse outside of canvas will finish mouse event, triggering isPressed right at the edge of canvas element where mouse left canvas. Or should we allow mouse move outside of canvas clamping mouse coords within canvas element? And handling all mouseup events as suppose to, even if they are outside of canvas?
If you mouse down on the PlayCanvas canvas but then move the mouse outside the bounds of the canvas and mouse up, PlayCanvas still reports the button as pressed (via the isPressed function).
Perhaps we should be capturing the mouse (see Element.setCapture docs) internally in the engine.
The text was updated successfully, but these errors were encountered: