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

[useScrollTrigger] Add passive flag to scroll trigger event listener #32437 #33749

Merged

Conversation

Dsalazar1685
Copy link
Contributor

Closes #32437

@mui-bot
Copy link

mui-bot commented Aug 2, 2022

Details of bundle changes

Generated by 🚫 dangerJS against dc48e8c

@michaldudak
Copy link
Member

This seems to be working fine.
One small issue is that IE will interpret the third argument as useCapture (it doesn't support passive event handlers) and treat the object passed in as true. This shouldn't really matter in this particular case, so I'm OK with keeping this as proposed.
@oliviertassinari - are you fine with this approach?

@oliviertassinari
Copy link
Member

For IE 11, the idea in https://mui.com/material-ui/getting-started/supported-platforms/#ie-11 is to say it's something we will do tradeoffs against. So trading degraded IE 11 support in exchange for better support of new browsers, yeah, that sounds like a great deal 💸.

Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ship it :)

@siriwatknp siriwatknp merged commit a804ca8 into mui:master Aug 8, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[useScrollTrigger] Make it scroll event handler passive
5 participants