f5 / unovis

Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript
https://unovis.dev
Apache License 2.0
2.27k stars 44 forks source link

Graph: Brush doesn't get deactivated when using macOS screenshot / screen recording shortcut #447

Open rokotyan opened 2 months ago

rokotyan commented 2 months ago

On macOS when you need to create a screenshot and record your screen you press Shift + Cmd + 4 / Shift + Cmd +5. When you do it, the brush activates but never gets cleared because the system doesn't register the keyup event (probably a macOS bug).

You can click Shift to deactivate the brush, but it took me quite a while to figure it out.

Maybe we can add a timer and disable it automatically after some time.

Here's a video showing the problem. At the end of the video I press Shift and the brush deactivates.

https://github.com/user-attachments/assets/cbfeaf39-a3c7-4c2d-b2fd-95edf0cc4e73