Skip to content

Instantly share code, notes, and snippets.

@TheRealWaldo
Last active August 29, 2015 14:11
Show Gist options
  • Save TheRealWaldo/cb8f0f1d5db203ad08e2 to your computer and use it in GitHub Desktop.
Save TheRealWaldo/cb8f0f1d5db203ad08e2 to your computer and use it in GitHub Desktop.
skel-layers android hack
--- src/skel-layers.js
+++ src/skel-layers.js
@@ -1411,7 +1411,13 @@
};
+ // Hack: Android and WP don't register touch events on fixed elements properly,
+ // so if this layerToggle is on an overlay it needs to be a click.
+ if (_._.vars.deviceType == 'android'
+ || _._.vars.deviceType == 'wp')
+ x.on('click', a);
+ else
- x.on(_.eventType, a);
+ x.on(_.eventType, a);
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment