Permalink
Browse files

Updates Responsive Nav to latest to fix issues on Android 2.3 and under

1 parent 63be0af commit c6023c12cfa7cd77a38fb29c32f23ea29c9110ad @viljamis viljamis committed Apr 2, 2015
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/responsive-nav.js
@@ -1,11 +1,12 @@
-/*! responsive-nav.js 1.0.36
+/*! responsive-nav.js 1.0.38
* https://github.com/viljamis/responsive-nav.js
* http://responsive-nav.com
*
* Copyright (c) 2015 @viljamis
* Available under the MIT license
*/
+/* global Event */
(function (document, window, index) {
// Index is used to keep multiple navs on the same page namespaced
@@ -538,7 +539,9 @@
* @param {event} event
*/
_onTouchStart: function (e) {
- this._preventDefault(e);
+ if (!Event.prototype.stopImmediatePropagation) {
+ this._preventDefault(e);
+ }
this.startX = e.touches[0].clientX;
this.startY = e.touches[0].clientY;
this.touchHasMoved = false;

0 comments on commit c6023c1

Please sign in to comment.