Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8279228: Leak in ScrollPaneSkin, related to touch events
Reviewed-by: aghaisas, kcr
  • Loading branch information
FlorianKirmaier authored and kevinrushforth committed Feb 23, 2022
1 parent 6f201f7 commit adf1da4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -25,6 +25,7 @@

package javafx.scene.control.skin;

import com.sun.javafx.scene.NodeHelper;
import com.sun.javafx.scene.ParentHelper;
import com.sun.javafx.scene.control.Properties;
import com.sun.javafx.scene.control.behavior.BehaviorBase;
Expand Down Expand Up @@ -1200,7 +1201,7 @@ private void startSBReleasedAnimation() {
sbTouchTimeline = new Timeline();
sbTouchKF1 = new KeyFrame(Duration.millis(0), event -> {
tempVisibility = true;
if (touchDetected == true || mouseDown == true) {
if ((touchDetected == true || mouseDown == true) && NodeHelper.isTreeShowing(getSkinnable())) {
sbTouchTimeline.playFromStart();
}
});
Expand Down

1 comment on commit adf1da4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.