File tree 1 file changed +4
-4
lines changed
adafruit_displayio_layout/widgets
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -761,7 +761,7 @@ def _animate_switch(self):
761
761
else :
762
762
position = 0
763
763
self ._draw_position (0 )
764
- else : # animate over time
764
+ else : # animate over time
765
765
# constrain the elapsed time
766
766
elapsed_time = time .monotonic () - start_time
767
767
if elapsed_time > self ._animation_time :
@@ -773,10 +773,10 @@ def _animate_switch(self):
773
773
) # fraction from 0 to 1
774
774
else :
775
775
# fraction from 0 to 1
776
- position = (elapsed_time ) / self ._animation_time
776
+ position = (elapsed_time ) / self ._animation_time
777
777
778
- # Update the moving elements based on the current position
779
- # 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
780
780
self ._draw_position (easing (position )) # update the switch position
781
781
782
782
# update the switch value once the motion is complete
You can’t perform that action at this time.
0 commit comments