mirror of
https://github.com/blasten/turn.js.git
synced 2025-09-03 14:53:03 +08:00
Merge pull request #97 from iwege/patch-1
Fix Touch event in window7 with chrome --enable-touch-events
This commit is contained in:
commit
e1384b134d
2
turn.js
2
turn.js
@ -29,7 +29,7 @@ var has3d,
|
|||||||
|
|
||||||
A90 = PI/2,
|
A90 = PI/2,
|
||||||
|
|
||||||
isTouch = 'Touch' in window,
|
isTouch = 'ontouchstart' in window,
|
||||||
|
|
||||||
events = (isTouch) ? {start: 'touchstart', move: 'touchmove', end: 'touchend'}
|
events = (isTouch) ? {start: 'touchstart', move: 'touchmove', end: 'touchend'}
|
||||||
: {start: 'mousedown', move: 'mousemove', end: 'mouseup'},
|
: {start: 'mousedown', move: 'mousemove', end: 'mouseup'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user