Skip to content

Commit

Permalink
Fixed hover opening animation duration as suggested in kivymd#1745
Browse files Browse the repository at this point in the history
  • Loading branch information
chillibasket committed Oct 26, 2024
1 parent 59a2ad0 commit 8634ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kivymd/uix/behaviors/motion_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def on_open(self, *args):
)
anim &= Animation(
_scale_x=1,
duration=self.show_duration - 0.3,
duration=max(self.show_duration - 0.3, 0),
transition="out_quad",
)
anim.start(self)
Expand Down

0 comments on commit 8634ae5

Please sign in to comment.