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

fixes #9322, take active_area_size into account when sending tip event #9325

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

clamydo
Copy link

@clamydo clamydo commented Feb 4, 2025

Describe your PR, what does it fix/add?

Fixes #9322. Also fixes #9132 (comment) (so relative_input = true has priority).

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

The transformation basically was just copied over from void CInputManager::onTabletAxis.

So perhaps the transformation should be applied instead in warpAbsolute? I'm not familiar with the codebase. In this revision, the transformation is applied at any position changing event (as far as I understand).

Note that when relative_input = true is set active_area_* is ignored. Perhaps in the future both could be combined (but I think the value in having both is low).

Is it ready for merging, or does it need work?

It fixes the bug and works for me. But would be cool if somebody could check it; especially if it does not introduce additional issues.

vaxerski
vaxerski previously approved these changes Feb 4, 2025
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
@clamydo
Copy link
Author

clamydo commented Feb 5, 2025

I've refactored the transformation in its own function so the code is shared. This makes sure the same transformation is used for both events.

Does this work for you?

@clamydo clamydo requested a review from vaxerski February 5, 2025 13:20
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
@clamydo clamydo requested a review from vaxerski February 5, 2025 15:45
@clamydo clamydo force-pushed the fix_pen_cursor_jump branch from 81c3a76 to c541e7f Compare February 6, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Cursor jumps vertically when reducing y-active area size
3 participants