File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
adafruit_displayio_layout/widgets Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -772,10 +772,11 @@ def _animate_switch(self):
772
772
1 - (elapsed_time ) / self ._animation_time
773
773
) # fraction from 0 to 1
774
774
else :
775
- position = (elapsed_time ) / self ._animation_time # fraction from 0 to 1
775
+ # fraction from 0 to 1
776
+ position = (elapsed_time ) / self ._animation_time
776
777
777
- # Update the moving elements based on the current position
778
- # apply the "easing" function to the requested position to adjust motion
778
+ # Update the moving elements based on the current position
779
+ # apply the "easing" function to the requested position to adjust motion
779
780
self ._draw_position (easing (position )) # update the switch position
780
781
781
782
# update the switch value once the motion is complete
You can’t perform that action at this time.
0 commit comments