Skip to content

fix: detect delegate handle with tablet pen#1288

Merged
kaamui merged 1 commit intoOpenBoard-org:devfrom
letsfindaway:fix-tool-from-pos
Jun 24, 2025
Merged

fix: detect delegate handle with tablet pen#1288
kaamui merged 1 commit intoOpenBoard-org:devfrom
letsfindaway:fix-tool-from-pos

Conversation

@letsfindaway
Copy link
Copy Markdown
Collaborator

@letsfindaway letsfindaway commented Jun 19, 2025

This PR tries to fix letsfindaway#221 as reported here #1270 (comment).

  • do not use isUnderMouse() as this does not work with tablet pen (in some cases)
  • instead determine delegate handle from position using contains()

We still do not use the function calls like rotateButtonBounds().contains(pos), as these do not guarantee a complete alignment between the cursor shape and the actual action performed when the mouse button is pressed.

This PR is tested with a Wacom One pen display. However I do not have and cannot reproduce the problem described by @fadikdawoud with this device even with the current dev branch. So I would like to ask @fadikdawoud whether my PR works for you.

- do not use isUnderMouse as this does not work with tablet pen
- instead determine delegate handle from position using contains()

Signed-off-by: letsfindaway <me@letsfindaway.de>
@fadikdawoud
Copy link
Copy Markdown

Hey @letsfindaway I having been trying it out for a couple of days now to make sure everything is working fine and It's safe to say that it works wonderfully fine, thank you so much

I really am thankful for the work you do and the effort you put in, you're a true inspiration!!!!

@letsfindaway
Copy link
Copy Markdown
Collaborator Author

Hey @letsfindaway I having been trying it out for a couple of days now to make sure everything is working fine and It's safe to say that it works wonderfully fine, thank you so much

Thanks for testing! Then I take this as confirmation of this PR and think it should be part of 1.7.4.

@kaamui kaamui merged commit e3207e8 into OpenBoard-org:dev Jun 24, 2025
@letsfindaway letsfindaway deleted the fix-tool-from-pos branch July 7, 2025 09:12
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.

3 participants