History

Only activate FastClick and stop keyboard shortcuts on touch devices

Thibaut Courouble committed 10 years ago

Commit 7d433c11 parent 8140e411 file · +3 −2Browse files

Unified · Split

assets/javascripts/views/layout/mobile.coffee+3−2
@@ -26,8 +26,9 @@ class app.views.Mobile extends app.View · 25 unmodified lines
2626 super
2727
2828 init: ->
29− FastClick.attach @body
30− app.shortcuts.stop()
29+ if $.isTouchScreen()
30+ FastClick.attach @body
31+ app.shortcuts.stop()
3132
3233 $.on @body, 'click', @onClick
3334 $.on $('._home-link'), 'click', @onClickHome