Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix touch screen gestures (e.g., scrolling) for Emacs 30 #1948

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kljohann
Copy link
Contributor

Emacs 30 introduces improved touch-screen support (via the Android port), see “Touchscreen Events” in the Emacs Lisp reference manual: By default, touch screen gestures are not processed when a command is bound to down-mouse-1 (as evil-mouse-drag-region is), as that is taken as an indication that touch input should be translated to down-mouse-1 followed by mouse motion events.

This change applies the ignored-mouse-command property to evil-mouse-drag-region that is also present on mouse-drag-region in Emacs 30. This has the effect that touch screen gestures are prioritized and mouse events are only emitted when no gesture was detected.

Emacs 30 introduces improved touch-screen support (via the Android port), see
“Touchscreen Events” in the Emacs Lisp reference manual: By default, touch
screen gestures are not processed when a command is bound to `down-mouse-1` (as
`evil-mouse-drag-region` is), as that is taken as an indication that touch input
should be translated to `down-mouse-1` followed by mouse motion events.

This change applies the `ignored-mouse-command` property to
`evil-mouse-drag-region` that is also present on `mouse-drag-region` in Emacs
30.  This has the effect that touch screen gestures are prioritized and mouse
events are only emitted when no gesture was detected.
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.

1 participant