plot icon indicating copy to clipboard operation
plot copied to clipboard

Clicking a pinned element should unpin it

Open mootari opened this issue 11 months ago • 1 comments

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?

mootari avatar Mar 15 '25 12:03 mootari

related #1832 #2298

Fil avatar Mar 15 '25 13:03 Fil