-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: BROS-712: Free form transformation on double click #9161
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
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9161 +/- ##
============================================
- Coverage 66.12% 49.30% -16.82%
============================================
Files 828 557 -271
Lines 64797 40448 -24349
Branches 10939 10945 +6
============================================
- Hits 42846 19943 -22903
+ Misses 21947 20501 -1446
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| setTimeout(() => { | ||
| self.clearJustSelectedFlag(); | ||
| }, 300); // Clear after double-click detection window |
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.
might be good to clear time out on beforeDestroy or on cleanup
yyassi-heartex
left a comment
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.
minor recommendation - but looks good otherwise approving
|
/fmt |
This PR addresses the issue when on double clicking an unselected region, the user will enter free-form transform mode for a brief second.
Before: on UNSELECTED region double-click it, the region will become selected, the transformer will appear for a brief second, then disappear.
After: on UNSELECTED region click will select the shape, double-click will enter transformation mode ONLY when the shape is selected.
Reasoning: free-form transformation is an editing operation. Most of the editing operations can only be performed on a currently selected region. Transform is no exception, so we're moving this behavior under the selected region guard.