Skip to content

Seemingly cleared selection after drag mode change reappears again #2955

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

Closed
rmoestl opened this issue Aug 30, 2018 · 3 comments
Closed

Seemingly cleared selection after drag mode change reappears again #2955

rmoestl opened this issue Aug 30, 2018 · 3 comments
Labels
bug something broken

Comments

@rmoestl
Copy link
Contributor

rmoestl commented Aug 30, 2018

This is a issue discovered while implementing feature #1852 in PR #2944.

The problem: when creating a selection in lasso / select drag mode, switching to pan or zoom would clean up the visual outlines of the selection. When moving back to lasso / select without a zoom / pan operation and adding to a selection by holding Shift lets those seemingly cleared selections reappear.

#2944 has an example attached in a this comment. Please also note the TODO comments in the code.

@rmoestl rmoestl changed the title Seemingly cleared selection after drag mode change reappears when switching back to previous drag mode Seemingly cleared selection after drag mode change reappears again Aug 30, 2018
@alexcjohnson alexcjohnson added the bug something broken label Aug 30, 2018
@etpinard
Copy link
Contributor

Pasting the contents of #2944 (comment) for clarity:


peek 2018-08-29 12-18

Note that the go from select -> pan -> select w/o actually panning.

Personally, I wouldn't consider this a bug as the "cached" selection outlines are still "correct" (i.e. they are drawn at the correct x/y coordinates). Now, is this the "ideal" behavior, I'm not so sure.


I like the behavior that we don't clear the selection itself until the last possible moment... but it would certainly be nice if the outline were redrawn when you switch back to a select mode. It's a sufficiently uncommon edge case though that I'd rather not hold up the PR for it - just leave it as is for now and make a new issue to follow up on this later.

@etpinard
Copy link
Contributor

cc #1848

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

4 participants