On Tue, 2 Nov 2021 10:49:45 GMT, Michael Strauß <mstra...@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

Reply via email to