Open applibs opened 1 year ago
This is my fix:
Chosen.prototype.search_results_mousewheel = function (evt) {
var delta;
if (evt.originalEvent) {
delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
}
if (delta != null) {
if (evt.cancelable) {
evt.preventDefault();
}
//evt.preventDefault();
if (evt.type === 'DOMMouseScroll') {
delta = delta * 40;
}
return this.search_results.scrollTop(delta + this.search_results.scrollTop());
}
};
Anybody has same problem?
Unable to preventDefault inside passive event listener invocation.