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

Sticky tooltips #86

Open
tuner opened this issue Feb 10, 2022 · 1 comment
Open

Sticky tooltips #86

tuner opened this issue Feb 10, 2022 · 1 comment
Labels
good first issue Good for newcomers Improvement Improve an existing functionality, don't introduce a new feature

Comments

@tuner
Copy link
Member

tuner commented Feb 10, 2022

Use case: The user would like to copy something from the tooltip. Copying is currently impossible because text cannot be selected from the tooltip.

An alternative behaviour should be provided: the user clicks a mark instance and the tooltip becomes sticky, i.e., it doesn't move, update, or disappear before the user either: clicks somewhere outside the tooltip or clicks an X icon that appeared to the upper right corner of the tooltip. However, this behavior may be undesirable when a custom click handler has been registered and thus, an option for disabling the behavior should be provided. The default behavior could depend on whether a custom click handler has been registered or not.

@tuner tuner added good first issue Good for newcomers Improvement Improve an existing functionality, don't introduce a new feature labels Feb 10, 2022
@tuner
Copy link
Member Author

tuner commented May 26, 2023

The click-to-stick behavior is used in the latest Observable Plot. Looks nice: https://twitter.com/mbostock/status/1661814647354449920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Improvement Improve an existing functionality, don't introduce a new feature
Projects
None yet
Development

No branches or pull requests

1 participant