Wheel-Gesture-Sample icon indicating copy to clipboard operation
Wheel-Gesture-Sample copied to clipboard

Example code returns NaN on consecutive touchmove

Open yozef opened this issue 12 years ago • 0 comments

Seems like an awesome tool & the code seems logical.

I'm using the default example, in Ti SDK 3.1.0.

I've kept the code as is, and added the Following to the Code:

wheelImage.addEventListener('touchstart', function(e){
    Ti.API.info('touchstart ' + e.x + ' ' + e.y);

wheelImage.addEventListener('touchmove', function(e){
    Ti.API.info('touchmove ' + e.x + ' ' + e.y);

My trace out is: [INFO] touchstart 140 27.5 [INFO] touchmove 141 27.5 [INFO] touchmove NaN NaN [INFO] touchmove NaN NaN [INFO] touchmove NaN NaN

yozef avatar Jun 19 '13 02:06 yozef