-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Disable text selection #5165
Disable text selection #5165
Conversation
@nicolaskruchten mentioned leaving annotations and scatter text selectable, but ATM these elements already can't be selected normally, due to the way we capture pointer events. That in mind, would it cause any problems to just put Note that ATM we specifically prevent selection on several specific elements, though a few of them (sankey and parcoords) use the simple version without vendor prefixes, which should be fixed if we don't switch to the top level.
|
One could select annotations and data text on master at the moment. So if we want to keep them as they are, I could make the adjustments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcjohnson |
That commit also removes the |
Is there a way to override this when using dash so that I can select axis values. This is with reference to this post on plotly forums. |
Not at the moment. But you could try removing 'user-select-none': true CSS from the svg container. |
@archmoj how do I do that? In Dash, graph_objects.Scatter doesn't seem to have any argument to override the CSS. Or do I set 'user-select-none': false as the style of the Div which contains the plot svg? |
Hmm that may not be going to work. |
Yes it was important in my app. The x-axis items contained timestamps or serial numbers I copy-paste into another application to get more details. I.e when I see certain upswings or downswings in the line plot, I copy x-axis items to examine them further. In case of items like timestamps, it is not easy to re-type them but rather copy-paste them is. |
Fixes #5021.
@plotly/plotly_js