From 74ec51b868a395b9cb6e7a272179acc1067fbcac Mon Sep 17 00:00:00 2001 From: barhorn Date: Thu, 15 Aug 2013 10:32:10 -0400 Subject: [PATCH 1/2] Update jquery.ui.resizable.js fix for multiple handles in the same direction (ex: "w", "ne", etc) --- ui/jquery.ui.resizable.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index aab93b57fd7..f1a36616507 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -278,10 +278,11 @@ $.widget("ui.resizable", $.ui.mouse, { capture = false; for (i in this.handles) { - handle = $(this.handles[i])[0]; - if (handle === event.target || $.contains(handle, event.target)) { - capture = true; - } + $(this.handles[i]).each(function(idxHandle,handle) { + if (handle === event.target || $.contains(handle, event.target)) { + capture = true; + } + }); } return !this.options.disabled && capture; From 203ac7e1019c2be359fed6e37084609f6dd4e046 Mon Sep 17 00:00:00 2001 From: barhorn Date: Thu, 15 Aug 2013 10:35:01 -0400 Subject: [PATCH 2/2] Update jquery.ui.resizable.js modify _mouseCapture - if we found out we are supposed to capture, stop looking at all the other handles --- ui/jquery.ui.resizable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index f1a36616507..9516599df4d 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -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;