@@ -2143,7 +2143,7 @@ function Wheel(Splide2, Components2, options) {
const { bind } = EventInterface(Splide2);
function mount() {
if (options.wheel) {
- bind(Components2.Elements.track, "wheel", onWheel);
+ bind(Components2.Elements.track, "wheel", onWheel, { passive: false, capture: true });
}
function onWheel(e) {
@@ -2139,7 +2139,7 @@ function Wheel(Splide2, Components2, options) {
@@ -2644,7 +2644,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
+ bind(Components2.Elements.track, "wheel", onWheel, {
+ passive: false,
+ capture: true
+ });
@@ -31,7 +31,7 @@ export function Wheel( Splide: Splide, Components: Components, options: Options
*/
function mount(): void {
if ( options.wheel ) {
- bind( Components.Elements.track, 'wheel', onWheel );
+ bind( Components.Elements.track, 'wheel', onWheel, { passive: false, capture: true } );