File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
ui/src/main/java/edu/wpi/grip/ui/pipeline Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 34
34
import javafx .scene .control .Labeled ;
35
35
import javafx .scene .image .Image ;
36
36
import javafx .scene .image .ImageView ;
37
+ import javafx .scene .input .MouseButton ;
37
38
import javafx .scene .input .MouseEvent ;
38
39
import javafx .scene .layout .HBox ;
39
40
import javafx .scene .layout .VBox ;
@@ -193,15 +194,15 @@ private void moveStepRight() {
193
194
194
195
/**
195
196
* Clicking the arrow at the top of the step will cause the step to either expand or retract.
196
- * Double clicking the arrow at the top of the step will cause all steps to either expand or
197
+ * Secondary clicking the arrow at the top of the step will cause all steps to either expand or
197
198
* retract.
198
199
*/
199
200
@ FXML
200
201
private void toggleExpand (MouseEvent event ) {
201
- if (event .getClickCount () == 1 ) {
202
+ if (event .getButton (). equals ( MouseButton . PRIMARY ) ) {
202
203
expanded .set (!expanded .get ());
203
- } else if (event .getClickCount () == 2 ) {
204
- eventBus .post (new SetStepsExpandedEvent (expanded .get ()));
204
+ } else if (event .getButton (). equals ( MouseButton . SECONDARY ) ) {
205
+ eventBus .post (new SetStepsExpandedEvent (! expanded .get ()));
205
206
}
206
207
}
207
208
You can’t perform that action at this time.
0 commit comments