summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/view/View.js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
commitb1775dd32d1e0113eba81cfdb9a5626295eebc4e (patch)
tree19a2f4ea004d11037e494e863a39ac834d364429 /StoneIsland/www/js/lib/view/View.js
parent3442b2821d30dd1ca6c6db1ba089ae3f5c95a758 (diff)
parent053473394e6e0990c68a924adbb7c7d75f35973d (diff)
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/www/js/lib/view/View.js')
-rwxr-xr-xStoneIsland/www/js/lib/view/View.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/view/View.js b/StoneIsland/www/js/lib/view/View.js
index 70d2c7eb..fe145221 100755
--- a/StoneIsland/www/js/lib/view/View.js
+++ b/StoneIsland/www/js/lib/view/View.js
@@ -64,9 +64,9 @@ var View = (function($, _){
if (eventName === 'mouseenter' || eventName === 'mouseleave') {
continue
}
- if (eventName === 'click') {
- eventName = 'touchstart'
- }
+ if (is_android && eventName === 'click') {
+ eventName = 'touchstart'
+ }
}
if (selector === '') {
this.$el.on(eventName, method);