We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Google Lighthouse recommends using passive listener to improve performance. Please consider the following change:
}, { key: "componentDidMount", value: function componentDidMount() { this.autoPanIsRunning = true; requestAnimationFrame(this.autoPanLoop); this.ViewerDOM.addEventListener('wheel', this.onWheel, false); } }, {
would need to be set as passive
}, { key: "componentDidMount", value: function componentDidMount() { this.autoPanIsRunning = true; requestAnimationFrame(this.autoPanLoop); this.ViewerDOM.addEventListener('wheel', this.onWheel, false, {passive: true}); } }, {
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=devtools
Br,
Mikko
The text was updated successfully, but these errors were encountered:
Has this change been implemented yet?
Sorry, something went wrong.
No branches or pull requests
Hello,
Google Lighthouse recommends using passive listener to improve performance. Please consider the following change:
would need to be set as passive
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners
https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=devtools
Br,
Mikko
The text was updated successfully, but these errors were encountered: