Skip to content

Commit

Permalink
Merge pull request #372 from loonix/master
Browse files Browse the repository at this point in the history
Fix to Fix jquery.event.drag suppressing native drag and drop #239
  • Loading branch information
6pac committed May 13, 2019
2 parents a0300f0 + dbebf40 commit 34ec867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/jquery.event.drag-2.3.0.js
Expand Up @@ -146,6 +146,11 @@
// locate and init the drop targets
if ( dd.drop !== false && $special.drop )
$special.drop.handler( event, dd );
// if user is not dragging
if(!dd.click && dd.distance === 0 && !dd.dragging) {
drag.textselect( true );
return;
}
// disable text selection
drag.textselect( false );
// bind additional events...
Expand Down

0 comments on commit 34ec867

Please sign in to comment.