Skip to content

Draft: whiteboard plugin: workaround for wacom quirk.#115

Open
mheistermann wants to merge 1 commit into
decker-edu:developfrom
mheistermann:mh/whiteboard-wacom-workaround
Open

Draft: whiteboard plugin: workaround for wacom quirk.#115
mheistermann wants to merge 1 commit into
decker-edu:developfrom
mheistermann:mh/whiteboard-wacom-workaround

Conversation

@mheistermann
Copy link
Copy Markdown

@mheistermann mheistermann commented Apr 3, 2024

On (some?) Wacom tablets (here: Cintiq tablet and MacOS), if you keep a button pressed, lift the pen far from the drawing surface and touch it down, the coordinates of the cursorDown event will be incorrect.
Instead the current mouse coordinates are reported, which usually are where the pen was previously lifted. If we start drawing at such coordinates, we get strange long lines.

This clip demonstrates the issue:

wacom-bug.mp4

Therefore, we should not use startStroke() in the "down" event handler, but only trust the coordinates from "move" events, which appear to be correct.

Interestingly, the official Wacom HTML demo suffers from the same problem.

Another shortcoming is that in this input sequence, the button press is not recognized anymore, reporting buttons "1" instead of "3" for keeping button "2" pressed.
I don't see any way of getting the required information, so that quirk is unchanged.

Note: i maked this as "draft", as i could only test this on our specific hardware.

@monofon
Copy link
Copy Markdown
Contributor

monofon commented Apr 5, 2024

Right now I do not have a Wacom tablet available for testing.

@mbotsch, @salbeira can you give this PR a quick test on your Wacom setup?

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.

2 participants