Skip to content

Preventing plot selection when double-clicking (e.g. for zoom reset).#203

Open
harbulot wants to merge 1 commit intojqPlot:masterfrom
harbulot:prevent_plot_selection_zoom_reset
Open

Preventing plot selection when double-clicking (e.g. for zoom reset).#203
harbulot wants to merge 1 commit intojqPlot:masterfrom
harbulot:prevent_plot_selection_zoom_reset

Conversation

@harbulot
Copy link
Copy Markdown
Contributor

@harbulot harbulot commented May 6, 2024

If you double-click to reset the zoom, the text that belongs to the plot will often be selected, since the browser also treats this as a double-click that selects the surrounding area.

For example on http://www.jqplot.com/examples/zoom1.php

If you zoom in and then double click to reset the zoom, some of the text is selected.

image

This patch prevents this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant