Skip to content

nativeScrollbarsOverlaid for v2? #473

Answered by KingSora
digidux asked this question in Q&A
Discussion options

You must be logged in to vote

Good day @digidux

The showNativeOverlaidScrollbars option is the replacement for nativeScrollbarsOverlaid.show in v2.

The nativeScrollbarsOverlaid.initialize options is completely removed from the options in v2 and replaced with the "initialization object". The idea is to fully customize the initialization process with it:

OverlayScrollbars({ 
 target: document.querySelector('#target'),
 cancel: {
   nativeScrollbarsOverlaid: true,
 }
}, {});

You are looking for the cancel field there, which indicates when to cancel the initialization. Additionally to cancel.nativeScrollbarsOverlaid you can also specify cancel.body. You can read the typescript definitions for more info :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@digidux
Comment options

Answer selected by digidux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants