Wheel-Gesture-Sample
Wheel-Gesture-Sample copied to clipboard
Example code returns NaN on consecutive touchmove
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