Skip to content

Scroll detect #599

Answered by KingSora
MyNameTony1000 asked this question in Q&A
Dec 25, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

@MyNameTony1000 exactly!

For completeness you could also do it like:

let el = OverlayScrollbars(this, {
  overflow: {
    x: 'visible-hidden',
    y: 'scroll',
  },
  scrollbars: {
    visibility: elVisibility,
    autoHide: elAutoHide,
    autoHideDelay: 300,
  },
}, {
  updated: (instance, onUpdatedArgs) => {
    console.log(instance);
    console.log(onUpdatedArgs);
  }
});

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KingSora
Comment options

Answer selected by MyNameTony1000
@MyNameTony1000
Comment options

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