Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the selected area on mouse move

  • Loading branch information...
commit 1f552b0a7cd4c77e1c567707384b95e2aa5075fa 1 parent ca297a5
@rhburrows authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/extras/selection.js
View
7 src/extras/selection.js
@@ -107,9 +107,14 @@
}
});
- $(d).bind('s2e:mouseup', function(ev){
+ $(d).bind('s2e:mousemove', function(ev){
if (e.selectionActive) {
e.movePointTo(ev.position);
+ }
+ });
+
+ $(d).bind('s2e:mouseup', function(ev){
+ if (e.selectionActive) {
e.toggleSelection();
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.