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

Annotations drag fix #1441

Merged
merged 3 commits into from
Mar 3, 2017
Merged

Annotations drag fix #1441

merged 3 commits into from
Mar 3, 2017

Conversation

alexcjohnson
Copy link
Collaborator

Fixes annotation dragging, which was broken back in #1265 - and tests it in all permutations of data/paper reference and arrow/no arrow

@etpinard please review - will need a patch release for this to get 1.24 into the workspace.


function waitForDragCover() {
return new Promise(function(resolve) {
var interval = 5,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously this was DBLCLICKDELAY/4 which is 75 msec, and it was cumulatively responsible for almost 20 extra seconds of delay in shapes_test. Runs fine at 5 msec.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done. Thanks!

.then(done);
});

it('works data-referenced with arrow', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful tests 🎉

@etpinard
Copy link
Contributor

etpinard commented Mar 3, 2017

💃 looks good! 2 patched lines in src/, 300+ in test/ Well done!

I hope you won't have to bump the toBeWithin() tolerances for ye old FF38 on CI.

@alexcjohnson alexcjohnson merged commit 0cf2ee1 into master Mar 3, 2017
@alexcjohnson alexcjohnson deleted the note-drag-fix branch March 3, 2017 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants