added click/doubleclick for mobile (bOhEme request)

This commit is contained in:
Iam Naughton Phier 2015-03-26 15:14:07 +02:00
parent 781300522b
commit 47da8dfd35
2 changed files with 16 additions and 0 deletions

View file

@ -295,6 +295,12 @@ class @Sahli
dcol.width amt
@loadkeys = ->
$(document).on('dblclick', (ev) =>
@nextpic()
)
$(document).on('click', (ev) =>
@setscroll()
)
$(document).on('keydown', (ev) =>
switch ev.which
when @keycode ' '