-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bounding Box tool improvements #7892
Conversation
@daniel-wer @philippotto Who wants to review? |
On Ubuntu, alt + left mouse drag moves the current window. Could we use another modifier instead of alt? |
Sorry the description was not up to date. I already changed the key to ctrl / meta as otherwise it might be bad UX when not close enough to a bbox and then unintentionally suddenly moving the dataset. See:
|
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.
cool stuff! left some comments. also: when holding ctrl or meta, it would be cool if the mouse icon would change to a "move" icon. also, the status bar should show that left drag will do a move when the modifier is pressed.
…knossos into bbox-tool-improvements
Done, although a little quirky: When pressing ctrl & not moving the cursor, the appearance does not change, as the cursor change is done in "onMouseMove". Do yous think that's alright or should I invest more time?
done :) |
Cool!
i think, it's alright :) |
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.
🎉
This PR keeps newly created bounding boxes via button interaction (and not created via drag) within the dataset bounding box to prevent initial invalid datasets (fixes #7353). Moreover, I added the option to move a bounding box around via ctrl +left mouse down.
URL of deployed dev instance (used for testing):
Steps to test:
Edit: Nvm: the bbox coordinate is not marked red anymore as claimed by issue #7353. Maybe this was changed in the past.
TODOs:
Issues:
(Please delete unneeded items, merge only when none are left open)