RFR: 8276313: ScrollPane scroll delta incorrectly depends on content height
Ajit Ghaisas
aghaisas at openjdk.java.net
Wed Dec 1 09:49:29 UTC 2021
On Tue, 2 Nov 2021 10:49:45 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> This PR fixes an issue where the scroll delta of ScrollPane incorrectly depends on the size of its content.
> This leads to extremely slow scrolling when the content is only slightly larger than the ScrollPane.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/ScrollPaneSkin.java line 896:
> 894: double vPixelValue;
> 895: if (nodeHeight > 0.0) {
> 896: vPixelValue = vRange / (nodeHeight - contentHeight);
This may result in divide by 0.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/ScrollPaneSkin.java line 928:
> 926: double hPixelValue;
> 927: if (nodeWidth > 0.0) {
> 928: hPixelValue = hRange / (nodeWidth - contentWidth);
This may result in divide by 0.
-------------
PR: https://git.openjdk.java.net/jfx/pull/660
More information about the openjfx-dev
mailing list