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?ds=sidebyside;hp=-c Zablokowanie eventów drag i draggesture w jquery.resizable.js. Powinno to ostatecznie wyeliminować błąd risajzowania w Firefox < 3.5. --- c3694f3c7912e1b8dd32c83b6d111af6d9412d8f 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);