05-03-2013 01:22 AM
i have used navigationMoment() method to get the direction(left and right only) of swipe and when user swipes left to right or vice-versa
i am pushing screen on every swipe according ti it's direction the code is working fine and i'm working with 5 OS,
but now problem is that when i swipe with trackpad and get the direction to swipe the screen the navigationMoment() method is to fast with device trackpad,how can i slow down it's detecting speed for direction to push the screen
i mean to say that when i swipe left with device ,it pushes the screen but some time,it will pushes the the screen two time .or something like how to increase the swipe length of trackpad of device...
Solved! Go to Solution.
05-03-2013 04:04 AM - edited 05-03-2013 05:13 AM
So have you solved this Thread?
In answer to your question, there is an API to slow down the trackpad, but I don't think you want to use it in this case. Instead I think you need to ignore swipes that occur too quickly. This will just involve remembering when the last swipe occurred or the screen was displayed, and returning true from the navigationMovement() when you don't think enough time has elapsed.