Is it possible to disable Lenis.onVirtualScroll while holding down the Shift key?
#358
-
|
For now |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
@AleksandrIvanenko Are you sure that holding Shift while scrolling should scroll horizontally on every browser ? Here is a test: https://codepen.io/ClementRoche/pen/NWVmzNm. For instance it's not the default behaviour of MacOS touchpad. In this case it would be |
Beta Was this translation helpful? Give feedback.
-
|
Some more information on the different browsers.
In addition, as far as I know this only applies to mouses, not trackpads and similar devices. |
Beta Was this translation helpful? Give feedback.
-
|
hey @AleksandrIvanenko @Serator, i've just shipped a |
Beta Was this translation helpful? Give feedback.


hey @AleksandrIvanenko @Serator, i've just shipped a
virtualScrolloption that allows you to manually modify the events before they get consumed. Iffalseis returned, the scroll will not be smoothed. Examples:(e) => { e.deltaY /= 2 }(to slow down vertical scroll) or({ event }) => !event.shiftKey(to prevent scroll to be smoothed if shift key is pressed)