From: zuber Date: Sat, 22 Aug 2009 12:38:24 +0000 (+0200) Subject: Zablokowanie eventów drag i draggesture w jquery.resizable.js. Powinno to ostatecznie... X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c3694f3c7912e1b8dd32c83b6d111af6d9412d8f?hp=4414d3a80488c222a54bc98309075b03cc9e37f3 Zablokowanie eventów drag i draggesture w jquery.resizable.js. Powinno to ostatecznie wyeliminować błąd risajzowania w Firefox < 3.5. --- diff --git a/project/static/js/jquery.resizable.js b/project/static/js/jquery.resizable.js index 44111ee9..c77c85b4 100644 --- a/project/static/js/jquery.resizable.js +++ b/project/static/js/jquery.resizable.js @@ -38,7 +38,9 @@ }; $(document).mousemove($.resizable.drag).mouseup($.resizable.stop); $('body').css('cursor', 'col-resize'); - }).bind('dragstart', function(event) { event.preventDefault() }); + }).bind('dragstart', function(event) { event.preventDefault(); }) + .bind('drag', function(event) { event.preventDefault(); }) + .bind('draggesture', function(event) { event.preventDefault(); }); }; })(jQuery);