File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/javafx.controls/src/main/java/javafx/scene/control/skin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2525
2626package javafx .scene .control .skin ;
2727
28+ import com .sun .javafx .scene .NodeHelper ;
2829import com .sun .javafx .scene .ParentHelper ;
2930import com .sun .javafx .scene .control .Properties ;
3031import com .sun .javafx .scene .control .behavior .BehaviorBase ;
@@ -1200,7 +1201,7 @@ private void startSBReleasedAnimation() {
12001201 sbTouchTimeline = new Timeline ();
12011202 sbTouchKF1 = new KeyFrame (Duration .millis (0 ), event -> {
12021203 tempVisibility = true ;
1203- if (touchDetected == true || mouseDown == true ) {
1204+ if (( touchDetected == true || mouseDown == true ) && NodeHelper . isTreeShowing ( getSkinnable ()) ) {
12041205 sbTouchTimeline .playFromStart ();
12051206 }
12061207 });
You can’t perform that action at this time.
0 commit comments