-
Hi! I'm trying to disable OS for mobile devices which already have native scrollbars. I'm currently using v2 beta 3.
Is there another way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good day @digidux The The OverlayScrollbars({
target: document.querySelector('#target'),
cancel: {
nativeScrollbarsOverlaid: true,
}
}, {}); You are looking for the |
Beta Was this translation helpful? Give feedback.
Good day @digidux
The
showNativeOverlaidScrollbars
option is the replacement fornativeScrollbarsOverlaid.show
inv2
.The
nativeScrollbarsOverlaid.initialize
options is completely removed from the options inv2
and replaced with the "initialization object". The idea is to fully customize the initialization process with it:You are looking for the
cancel
field there, which indicates when to cancel the initialization. Additionally tocancel.nativeScrollbarsOverlaid
you can also specifycancel.body
. You can read the typescript definitions for more info :)