We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbae137 commit a634e50Copy full SHA for a634e50
adafruit_displayio_layout/widgets/switch_round.py
@@ -772,10 +772,11 @@ def _animate_switch(self):
772
1 - (elapsed_time) / self._animation_time
773
) # fraction from 0 to 1
774
else:
775
- position = (elapsed_time) / self._animation_time # fraction from 0 to 1
+ # fraction from 0 to 1
776
+ position = (elapsed_time) / self._animation_time
777
- # Update the moving elements based on the current position
778
- # apply the "easing" function to the requested position to adjust motion
+ # Update the moving elements based on the current position
779
+ # apply the "easing" function to the requested position to adjust motion
780
self._draw_position(easing(position)) # update the switch position
781
782
# update the switch value once the motion is complete
0 commit comments