Skip to content

Ignore Scrollbar When below some div #448

Answered by idiotWu
blitzve0 asked this question in Q&A
Discussion options

You must be logged in to vote

A quick&dirty fix:

menu.addEventListener('pointerenter', () => {
  scrollbar.track.xAxis.element.style.pointerEvents =
  scrollbar.track.yAxis.element.style.pointerEvents = 'none';
});

menu.addEventListener('pointerleave', () => {
  scrollbar.track.xAxis.element.style.pointerEvents =
  scrollbar.track.yAxis.element.style.pointerEvents = '';
});

Replies: 1 comment 1 reply

Comment options

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

Answer selected by blitzve0
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