Skip to content

Commit

Permalink
Update jquery.ui.resizable.js
Browse files Browse the repository at this point in the history
modify _mouseCapture - if we found out we are supposed to capture, stop looking at all the other handles
  • Loading branch information
barhorn committed Aug 15, 2013
1 parent 74ec51b commit 203ac7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/jquery.ui.resizable.js
Expand Up @@ -281,8 +281,10 @@ $.widget("ui.resizable", $.ui.mouse, {
$(this.handles[i]).each(function(idxHandle,handle) {
if (handle === event.target || $.contains(handle, event.target)) {
capture = true;
return false; //get out of the $().each loop
}
});
if(capture) break; //we found one. Get out of the for loop
}

return !this.options.disabled && capture;
Expand Down

0 comments on commit 203ac7e

Please sign in to comment.