jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
682 stars 59 forks source link

Warning in DevTools #28

Closed sandor closed 7 years ago

sandor commented 7 years ago

xel.min.html:1 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Is this something I should worry about?

jarek-foksa commented 7 years ago

I can't mark all the "wheel" events as passive because I need to preventDefault() their default action which is scrolling a page. This might have negative performance impact on touch devices (phones, tablets), be shouldn't be a problem on a desktop.

You can hide those warning by switching the console display mode from "Verbose" to something lower:

screenshot