-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix polygon tool bug #799
Fix polygon tool bug #799
Conversation
When interaction mode is changed, the old and new computed property change, which triggers their corresponding watchers. Fix bug by using watcher of current interaction mode only. Fixes #798
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.
If I just disable one of the tools, the interaction is not reset (i.e. the tool remains active). To reproduce, activate the polygon brush and then press Esc. The brush is still active.
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 still doesn't work in all cases, unfortunately. When I now switch from the polygon brush to the magic wand tool (or any other tool), both will be active. You can tinker a little with all the tools before you submit a new version for review, then you will quickly see issues like these yourself.
The video annotation tool does this a little differently, as it has a variable for each interaction that can be added/removed separately. There, everything works correctly.
I tested the code multiple times for images and videos now. I think there shouldn't be bugs any more. Sorry for my hasty approach before! |
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.
Works, thanks!
When interaction mode is changed, the old and new computed property change, which triggers their corresponding watchers.
Fix bug by using watcher of current interaction mode only.