Skip to content

Annotations drag fix - #1441

Merged
alexcjohnson merged 3 commits into
masterfrom
note-drag-fix
Mar 3, 2017
Merged

alexcjohnson merged 3 commits into
masterfrom
note-drag-fix

Conversation

@alexcjohnson

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Beautiful tests 🎉

@etpinard

etpinard commented Mar 3, 2017

Copy link
Copy Markdown
Contributor

💃 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

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants