Skip to content
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: Unable to select drawing annotation after saving #350

Merged
merged 2 commits into from Mar 1, 2019

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Mar 1, 2019

Issue was that when starting a drawing annotation, in DrawingModeController.drawingStartHandler we would register the thread, which would make an entry into the rbush instance for that page, however the location would be of the mouse event point, not the finished drawing boundary. Upon refresh the whole boundary would be available and registered into rbush so clicking at that point wouldn't be a problem.

The solution here is to defer registerThread until we have successfully saved.

A change in experience is also that after the drawing annotation is saved, we unmount the popover

@boxcla
Copy link

boxcla commented Mar 1, 2019

Verified that @ConradJChan has signed the CLA. Thanks for the pull request!

jstoffan
jstoffan previously approved these changes Mar 1, 2019
jeremypress
jeremypress previously approved these changes Mar 1, 2019
@ConradJChan ConradJChan dismissed stale reviews from jeremypress and jstoffan via 6dd026a March 1, 2019 20:28
@ConradJChan ConradJChan merged commit 8632777 into box:master Mar 1, 2019
@ConradJChan ConradJChan deleted the delete-drawings branch March 1, 2019 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants