-
23 Jan 2013 12:34 AM #1
Answered: Swipe left right very narrow on x-axis
Answered: Swipe left right very narrow on x-axis
Hi,
I have an issue with the swipe left & right. When swiping horizontally it the threshold is quite narrow. What would I have to override there to extend it more along the y-axis?
some users are swiping from left down to right up and miss the framework 'misses'/ignores the swipe that way.
I tried to overwrite Ext.event.recognizer.Swipe directly in the sencha-touch-all-debug.js and this worked once I set the values to:
config: {
minDistance: 50, // 80
maxOffset: 400, //35
maxDuration: 1000
},
is there any better way to do that within the code and not editing the source file directly? Via Ext.override or extend?
thanks,
Alex
-
Best Answer Posted by A.Tyshchyk
You may subscribe on swipe event and check in function-listener distance or duration
Code:onSwipe: function(e) { if (e.distance > 200) { //My code } }
-
23 Jan 2013 6:18 AM #2
You may subscribe on swipe event and check in function-listener distance or duration
Code:onSwipe: function(e) { if (e.distance > 200) { //My code } }


Reply With Quote