-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Blazor webassembly: @onwheel:preventDefault has no effect #24932
Comments
Thanks for contacting us. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
To learn more about what this message means, what to expect next, and how this issue will be handled you can read our Triage Process document. |
Describe the bug
Adding
@onwheel:preventDefault
attribute does not prevent the default scrolling behavior.To Reproduce
In Counter demo project, on Index page
The page still bumps up or down when I perform two fingers scroll gesture which indicates that the event was not suppressed.
Further technical details
Counter demo project on mac from command line. Versions:
Workarouond
interop.js:
the page:
Possibly blazor does not set the
passive
option correctly when it adds its event listener. It should disable the scroll optimization by settingpassive: false
when@on<EVENT>:preventDefault
is present for a scrolling event in the razor markup.The text was updated successfully, but these errors were encountered: