RFR: 8282100: Missed top/left bouncing for ScrollPane on Raspberry Pi with Touchscreen
Ajit Ghaisas
aghaisas at openjdk.java.net
Wed Feb 23 10:00:53 UTC 2022
On Fri, 18 Feb 2022 15:21:49 GMT, Alexander Scherbatiy <alexsch at openjdk.org> wrote:
> There is the bouncing when scrolling a node on a ScrollPane to the right/bottom (the node on the scroll pane is scrolled further than its width/height so the background is visible and then automatically is scrolled back to the node bounds) on Raspberry Pi with Touchscreen.
> There is no bouncing when node is scrolled to the left/top.
>
> The fix updates ScrollPaneSkin.updatePosX()/updatePosY() methods to not discard out of the range top/left minX/Y values in case the touch is supported.
The change looks correct. I verified that it does not have any side effect on non-touch devices (it is obvious from the code changes as well).
I did not test on the platform this PR is intended for.
-------------
Marked as reviewed by aghaisas (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/736
More information about the openjfx-dev
mailing list