plot
plot copied to clipboard
Clicking a pinned element should unpin it
Users can sticky a pointer selection by clicking. However, to unsticky it again they have to click outside the currently rendered mark elements: https://github.com/observablehq/plot/blob/90a56897cabda400e2b7537f8ecbbd2cebd18f7f/src/interactions/pointer.js#L167
I frequently find myself stumbling over this behavior since I intuitively treat pinning as a toggle. If technically feasible I believe it would be preferable if any click, even on the mark itself, would unpin the selection.
Is the current implementation meant to handle cases where a user interacts with the pinned mark, like clicking a link or selecting text?
related #1832 #2298