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
26 super26 super
27 27
28 init: ->28 init: ->
29 FastClick.attach @body29 if $.isTouchScreen()
30 app.shortcuts.stop()30 FastClick.attach @body
31 app.shortcuts.stop()
31 32
32 $.on @body, 'click', @onClick33 $.on @body, 'click', @onClick
33 $.on $('._home-link'), 'click', @onClickHome34 $.on $('._home-link'), 'click', @onClickHome