Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[util] Improve scrolling on high-DPI screens (Fixes JB#29417)
The scrolling code was just scrolling at most one line at a time, and even when the touch point moved even just one pixel. Fix that by using the font size as a scale factor (that's still not 100% correct, but it improves the situation, and the bias scales well with changing font size) and by actually accumulating not consumed offsets, so small moves (smaller than the font size) are not discarded, but actually accumulate.
- Loading branch information
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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