perfect-scrollbar
perfect-scrollbar copied to clipboard
Feature Request: eventListener set passive: false
change from:
114> this.element.addEventListener(eventName, handler, false);
[...]
124> this$1.element.removeEventListener(eventName, handler, false);
to:
114> this.element.addEventListener(eventName, handler, { passive: false });
[...]
124> this$1.element.removeEventListener(eventName, handler, { passive: false });
Why false and not true?
https://github.com/mdbootstrap/perfect-scrollbar/issues/873 already requests the ability to set this via an option.
The guidance here is to use passive: true.
Ah, the answer to that and the PR for this is here: https://github.com/mdbootstrap/perfect-scrollbar/pull/945#issuecomment-734504756