Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple eventsElement? #44

Open
caroline-hughes opened this issue Jan 18, 2024 · 1 comment
Open

Support for multiple eventsElement? #44

caroline-hughes opened this issue Jan 18, 2024 · 1 comment

Comments

@caroline-hughes
Copy link

In my project, select can occur within the HTMLElement "doc-viewer":

eventsElement: document.getElementById("doc-viewer")

Once drag selection ends, we show a div for that box area on top of "doc-viewer".
Ideally, drag selection can begin in this box, or end in it if started from within "doc-viewer". But since the box z-index is higher, it can't. See video.

Think of these box areas as comments on a document. Ideally, two comment areas can overlap.

What is the best solution here? Would it be possible to support multiple eventsElements?

Screen.Recording.2024-01-17.at.8.06.55.PM.mov
@tomaszczura
Copy link
Collaborator

Could you create a codesandbox with a simple example?

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

No branches or pull requests

2 participants