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
Tap tool default mode should select+unselect, but not append #13831
Comments
Since bokeh 3.4 the default for tap tool is The case from discourse the prompted this discussion silently assumes |
cc @bokeh/dev I think this change should be re-visited. It certainly makes sense to offer this mode for some niche cases, but I don't think it makes sense as the default (and it clearly defies some user's expectations as well as seen on the discourse). This is especially jarring in plots like pie or bar charts where there are only a handful of elements to select. This also puts one tool on different footing than all other tools which is not good for simple documentation. Many users have used tap selection as part of a larger UI, e.g. to trigger some other drill down or other UI update and this change breaks all of those usages. |
FWIW I would be ok with this default behavior:
i.e. it is very specifically the "additive" nature of this xor-mode, where tapping a new point adds to an existing selection, that is the problem |
I agree with that proposal. Let's allow deselect but not adding by default. |
Do we want this behavior to be implemented in place of |
I actually don't know what all the current modes are to say, where are they enumerated/described? Well, I guess they are listed here
I guess it's a little weird, I don't think one set of selection modes really neatly covers all the tools in the same way. i.e the re-select to un-select that can make sense for a tap is nearly impossible to imagine being useful on a lasso tool. I think I lean towards: new mode, e.g. |
Original ref: https://discourse.bokeh.org/t/taptool-on-a-pie-chart-reopens-all-previous-taps/11448/6
In Bokeh 3.4.x the tap tool seems to be in permanent "append" mode, i.e. it always does what I would only expect to see if
shift
was added to a tap.This can be seen in the
color_scatter
example in in the gallery. Here is the result of just randomly clicking many places with no shift or other modifier added:This does not occur with the 3.3.x version of the gallery example -- each new tap replaces the previous selection.
cc @bokeh/dev I have triaged
discussion
for now but I believe this is a bug/regression (and merits a 3.4.2 release).The text was updated successfully, but these errors were encountered: