Is it possible to disable Lenis.onVirtualScroll while holding down the Shift key?
#358
|
For now |
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 |
|
hey @AleksandrIvanenko @Serator, i've just shipped a |


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)