diff --git a/jquery.ui.touch-punch.js b/jquery.ui.touch-punch.js index 16ce41d..b7aefcb 100755 --- a/jquery.ui.touch-punch.js +++ b/jquery.ui.touch-punch.js @@ -11,7 +11,7 @@ (function ($) { // Detect touch support - $.support.touch = 'ontouchend' in document; + $.support.touch = 'ontouchend' in document || 'onpointerdown' in document || 'onMSPointerDown' in document;; // Ignore browsers without touch support if (!$.support.touch) { @@ -155,6 +155,10 @@ touchend: $.proxy(self, '_touchEnd') }); + if($.browser.msie){ + self.element.css('-ms-touch-action', 'none'); + } + // Call the original $.ui.mouse init method _mouseInit.call(self); }; @@ -177,4 +181,4 @@ _mouseDestroy.call(self); }; -})(jQuery); \ No newline at end of file +})(jQuery);