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

Pointer interaction interferes with external event handlers #2052

Open
jheer opened this issue Apr 11, 2024 · 0 comments
Open

Pointer interaction interferes with external event handlers #2052

jheer opened this issue Apr 11, 2024 · 0 comments

Comments

@jheer
Copy link

jheer commented Apr 11, 2024

The pointerdown handler for the pointer interaction calls event.stopImmediatePropagation():
https://github.com/observablehq/plot/blob/main/src/interactions/pointer.js#L165

As a result, any event handlers added to the SVG after the fact are starved of expected pointerdown events. For example, in Mosaic vgplot this breaks discrete point selection if a Plot pointer or tip are active (uwdata/mosaic#361).

For greater interoperability, might it be possible to remove this line, and instead handle any necessary event suppression in a Plot-internal fashion? Thanks!

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

1 participant