> For the longest time, I've had the impression that scrolling in JavaFX is not > quite right. Looking at it, that suspicion is quickly confirmed: the scroll > distance is incorrectly divided by the render scale. > > To reproduce, open MonkeyTester and scroll a ListView. On Windows 11 with a > system setting of 3 lines per detent, the ListView scrolls exactly 3 lines at > 100% render scale, 2 lines at 150% render scale, and 1.5 lines at 200% render > scale. > > The render scale conversion was introduced in 2015 when High-DPI support was > added. However, mouse wheel rotation is a dimensionless number, it shouldn't > be scaled at all. A line is a line, no matter the render scale. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: fix robot test ------------- Changes: - all: https://git.openjdk.org/jfx/pull/2282/files - new: https://git.openjdk.org/jfx/pull/2282/files/a9851b0e..a521396e Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=2282&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2282&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jfx/pull/2282.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2282/head:pull/2282 PR: https://git.openjdk.org/jfx/pull/2282
