webstatus.dev icon indicating copy to clipboard operation
webstatus.dev copied to clipboard

Clicking on the chart doesn't refresh the tooltip

Open past opened this issue 1 year ago • 3 comments

Visiting say https://webstatus.dev/features/popover and clicking on various points in the chart produces nice little tooltips with stats. However, if you keep clicking on other points the tooltip isn't being reset, it just accumulates the details of what you click:

Screenshot 2024-05-22 8 37 35 AM

past avatar May 22 '24 15:05 past

CC @dlaliberte

past avatar May 22 '24 15:05 past

This behavior of accumulating points in the tooltip is due to the "multi-select" mode. You can deselect any of the points as well by clicking them again, but there ought to be an easy way to clear the selection of all points. Alternatively, we could enable multi-selection via a click-modifier, such as control-click.

dlaliberte avatar May 23 '24 17:05 dlaliberte

Oh, interesting. Given that control-click already does multi-selection I think single click should default to non-multi-click behavior.

past avatar May 24 '24 17:05 past

Fixed, for now, by disabling the multi-select mode.

dlaliberte avatar Jun 03 '24 15:06 dlaliberte