Last active
August 29, 2015 14:11
-
-
Save TheRealWaldo/cb8f0f1d5db203ad08e2 to your computer and use it in GitHub Desktop.
skel-layers android hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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