Merge pull request #97 from iwege/patch-1

Fix Touch event in window7 with chrome --enable-touch-events
This commit is contained in:
Emmanuel Garcia 2012-06-07 21:00:18 -07:00
commit e1384b134d

View File

@ -29,7 +29,7 @@ var has3d,
A90 = PI/2,
isTouch = 'Touch' in window,
isTouch = 'ontouchstart' in window,
events = (isTouch) ? {start: 'touchstart', move: 'touchmove', end: 'touchend'}
: {start: 'mousedown', move: 'mousemove', end: 'mouseup'},