Skip to content

Commit 7d433c1

Browse files
committed
Only activate FastClick and stop keyboard shortcuts on touch devices
1 parent 8140e41 commit 7d433c1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎assets/javascripts/views/layout/mobile.coffee‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ class app.views.Mobile extends app.View
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

0 commit comments

Comments
 (0)