From 237e7c4fa99b816bae5ae100ba93894ea0146d71 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 27 Feb 2024 12:27:14 +0200 Subject: [PATCH] Declare enabled option in mousewheel.d.ts (#7317) --- src/types/modules/mousewheel.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/types/modules/mousewheel.d.ts b/src/types/modules/mousewheel.d.ts index bb220b1fb..4f2bb8fa9 100644 --- a/src/types/modules/mousewheel.d.ts +++ b/src/types/modules/mousewheel.d.ts @@ -26,16 +26,20 @@ export interface MousewheelEvents { } export interface MousewheelOptions { + /** + * Set to `true` to enable mousewheel control + * + * @default false + */ + enabled?: boolean; /** * Set to `true` to force mousewheel swipes to axis. So in horizontal mode mousewheel will work only with horizontal mousewheel scrolling, and only with vertical scrolling in vertical mode. - * * @default false */ forceToAxis?: boolean; /** * Set to `true` and swiper will release mousewheel event and allow page scrolling when swiper is on edge positions (in the beginning or in the end) - * * @default false */