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!
The
pointerdownhandler for the pointer interaction callsevent.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
pointerdownevents. 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!