diff --git a/jquery.ui.touch-punch.js b/jquery.ui.touch-punch.js index 0e26f14..1197f26 100755 --- a/jquery.ui.touch-punch.js +++ b/jquery.ui.touch-punch.js @@ -206,7 +206,7 @@ _mouseDown.call(self, event); - if (event.isDefaultPrevented()) { + if (event.isDefaultPrevented() && touchEvent) { touchEvent.preventDefault(); touchStartDefaultPrevented = true; } @@ -223,7 +223,7 @@ _mouseMove.call(self, event); - if (event.isDefaultPrevented()) { + if (event.isDefaultPrevented() && touchEvent) { touchEvent.preventDefault(); } };