Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDTabsPrimary switch animation duration hardcoded and impossible to disable #1679

Open
ddauer opened this issue Apr 16, 2024 · 0 comments
Open

Comments

@ddauer
Copy link

ddauer commented Apr 16, 2024

Description of the Bug

In function set_active_item

def set_active_item(self, item: MDTabsItem) -> None:
the animation duration is hardcoded to 0.2:

but should respect anim_duration

anim_duration = NumericProperty(0.2)

as it is used in

d=0 if not self.indicator_anim else self.indicator_duration,

Now I understand that indicator animation is different from active tab switch animation. However, if I set indicator_anim = False I also would expect the tab switch not to animate. If that is intended, then I would expect a new variable to control this behavior, e.g.: tab_swtich_anim = BooleanProperty(True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant