Skip to content

Commit 4a5fabb

Browse files
committed
Fixed the jumpy bug and made the animation slightly faster.
1 parent 47e3279 commit 4a5fabb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/main/java/edu/wpi/grip/ui/pipeline/StepController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ public void handle(ActionEvent event) {
219219
}
220220

221221
/**
222-
* Makes an animation to make an input socket fade in over 0.25 seconds.
222+
* Makes an animation to make an input socket fade in over 0.1 seconds.
223223
*
224224
* @param input the input socket controller that will be faded out.
225225
*/
226226
private void fadeIn(InputSocketController input) {
227227
input.getRoot().setVisible(true);
228228
DoubleProperty opacity = input.getRoot().opacityProperty();
229229
Timeline fadeIn = new Timeline(
230-
new KeyFrame(new Duration(250), new KeyValue(opacity, 1.0)));
230+
new KeyFrame(new Duration(100), new KeyValue(opacity, 1.0)));
231231
fadeIn.setOnFinished(new EventHandler<ActionEvent>() {
232232
@Override
233233
public void handle(ActionEvent event) {

0 commit comments

Comments
 (0)