implement relative precision mode#45
Open
vale981 wants to merge 4 commits into
Open
Conversation
this allows to have multiple different precision switches
439b038 to
2c5fd48
Compare
Author
|
Howdie! Is there any hope of merging this? |
Author
|
:) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements an emulation of the "Relative" output method when the increased precision mode is enabled. When binding the precision mode one can choose whether the absolute (hitherto implemented) or relative mode is used.
I found this supremely useful when writing notes with xournalpp as I would often hit the edge of the tablet fairly soon when precision mode was activated. Now, I can just lift the pen and continue on the top left corner :).
Hopefully my little "hack" is now polished enough for upstreaming.
I also made the precision multiplier configurable per-binding so that one can have multiple precision levels to choose from.
Cheers,
Valentin