Skip to content

Conversation

@tpby2005
Copy link

added initial support for gestures, namely GESTURE_TAP which is used in core_basic_screen_manager, as well as disabling right-click context menu in the game canvas

core_basic_screen_manager, as well as disabling right-click context menu
in the game canvas
this.currentMousePosition = {x: e.clientX, y: e.clientY};
};
const gestureTap = (e) => {
this.currentGestureState = gestureMapping.GESTURE_TAP;
Copy link

@RobLoach RobLoach Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will register a GESTURE_TAP if the middle-mouse button is pressed, and never actually release it. I'm not sure this is the intended behavior.

@RobLoach
Copy link

I'd recommend using the mouse events for the actual mouse via #41 , and saving gestures for the WebAPI touch events.

@tpby2005 tpby2005 closed this by deleting the head repository Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants