Skip to content

Commit 203ac7e

Browse files
committed
Update jquery.ui.resizable.js
modify _mouseCapture - if we found out we are supposed to capture, stop looking at all the other handles
1 parent 74ec51b commit 203ac7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.resizable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,10 @@ $.widget("ui.resizable", $.ui.mouse, {
281281
$(this.handles[i]).each(function(idxHandle,handle) {
282282
if (handle === event.target || $.contains(handle, event.target)) {
283283
capture = true;
284+
return false; //get out of the $().each loop
284285
}
285286
});
287+
if(capture) break; //we found one. Get out of the for loop
286288
}
287289

288290
return !this.options.disabled && capture;

0 commit comments

Comments
 (0)