How do I disable the scroll programmatically? #83
Unanswered
MomoIsHeree
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@MomoIsHeree, what do you mean by disabling the scrolling functionality? Why do you need this library in this case? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I've been looking into how to disable the scrolling functionality programmatically and couldnt find anything.
The reason why I need to do it this way, is because I can't use ignoreElements, because the library I'm using (konva.js) just makes a giant canvas element and I haven't found a way to detect if an element inside the canvas is touched.
However, my items have a "dragging" flag, so my current idea is that I just programmatically disable the drag onDragStart, if any elements have the dragging flag set to true.
So, back to the original question: How would I do this programmatically inside onScrollStart()
Beta Was this translation helpful? Give feedback.
All reactions