question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow disabling wheel event handling for standalone instances

See original GitHub issue

I don’t want to let the user scroll since it interferes with main page scrolling.

My current workaround is to wrap Excalidraw into this:

<div
  onWheelCapture={e => {
    // Stop Excalidraw from hijacking scroll
    e.stopPropagation();
  }}
>

But it’s not a very well-known workaround so a prop to disable wheel event handling would be nice too.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dwellecommented, Jun 20, 2021

scrollBehaviour sounds good, but let’s go with US spelling scrollBehavior 😃.

0reactions
ad1992commented, May 4, 2022

Hi, haven’t gotten a chance to look into this yet, hopefully, will pick it up sometime soon but don’t have a timeline, PR’s welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable scrolling temporarily? - javascript
The scroll event cannot be canceled. But you can do it by canceling these interaction events: Mouse & Touch scroll and Buttons associated ......
Read more >
Setting up and enabling Enhanced Monitoring
In Monitoring, choose Enable Enhanced Monitoring for your DB instance or read replica. To turn Enhanced Monitoring off, choose Disable Enhanced Monitoring. Set ......
Read more >
Handle events - Unity - Manual
Implement your class default actions in ExecuteDefaultActions() , if possible. This allows more options to override the class. You can call PreventDefault() to ......
Read more >
Element: wheel event - Web APIs | MDN
Use the event name in methods like addEventListener() , or set an event handler property. addEventListener('wheel', (event) => {}); onwheel ...
Read more >
GUI Programming - Java Programming Tutorial
Constructor to setup the GUI components and event handlers public ... instance public void setEnable(boolean enable); // Enable or disable this Button.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found