Skip to content

Conversation

@atyrode
Copy link
Contributor

@atyrode atyrode commented Apr 27, 2025

This makes the click-through property of embeddable now conditional to the user not scrolling.
This greatly enhance the usability on MacOS and trackpads that allow scrolling with fingers, as the scrolling would be abruptly interrupted as soon as the mouse hovered any embeddable, making the navigation experience quite frustrating.

atyrode added 2 commits April 27, 2025 22:25
- Added CSS variable for pointer-events to manage interaction during scrolling.
- Introduced lockEmbeddables function to disable pointer-events while scrolling and reset after scrolling ends using a debounced function.
- Updated ExcalidrawWrapper to integrate scrolling behavior with embeddables.
@atyrode atyrode merged commit 0191304 into main Apr 27, 2025
1 check passed
@atyrode atyrode deleted the scroll-embed-fix branch April 27, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants