Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Pointer events support#819

Merged
toasted-nutbread merged 6 commits intoFooSoft:masterfrom
toasted-nutbread:pointer-events2
Sep 13, 2020
Merged

Pointer events support#819
toasted-nutbread merged 6 commits intoFooSoft:masterfrom
toasted-nutbread:pointer-events2

Conversation

@toasted-nutbread
Copy link
Collaborator

This change adds support for pointer events, which enables custom scanning modifiers for pen devices.

This change works well on Chrome, but has some issues on Firefox, which are presumably browser bugs:

  • Pen pointer up/down events register as touch events instead of pen events. over/out events register correctly as pen.
  • The above bug also causes the keyboard-mouse input fields on the settings page to not detect pen buttons correctly.
  • Pen buttons also are not even detected correctly when buttons are held. On Chrome, they do work as expected.

The events incorrectly registering as touch instead of pen can probably be worked around, since the pointerId is the same for both. This will be done as a separate change later.

Originally mentioned in #267. This feature is disabled by default.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant