Skip to content

Commit

Permalink
touchclick update
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Jun 4, 2014
1 parent 664348c commit ca3cfc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vendor/assets/javascripts/touchclick.js.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###!
Copyright (c) 2013 Derek Petersen https://github.com/tuxracer/touchclick MIT License
https://raw2.github.com/tuxracer/touchclick/3.0.1/src/touchclick.coffee
https://github.com/tuxracer/touchclick/raw/3.1.0/src/touchclick.coffee
###

$ = if typeof jQuery is 'function' then jQuery else require 'jquery'
Expand Down Expand Up @@ -56,9 +56,9 @@ events = (type) ->
$el[type] 'click', (e) ->
e.preventDefault()

if window.navigator.msPointerEnabled
$el[type] 'MSPointerDown', touchstart
$el[type] 'MSPointerUp', touchend
if window.navigator.pointerEnabled
$el[type] 'pointerdown', touchstart
$el[type] 'pointerup', touchend
else
$el[type] 'touchstart mousedown', touchstart
$el[type] 'touchmove mouseout', touchmove
Expand Down

0 comments on commit ca3cfc4

Please sign in to comment.