Skip to content

Commit

Permalink
Declare enabled option in mousewheel.d.ts (#7317)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifecoderua committed Feb 27, 2024
1 parent cae9c2d commit 237e7c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/modules/mousewheel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 237e7c4

Please sign in to comment.