peacemaker Expert Licensed User Longtime User May 15, 2017 #1 Hi, All How to code the standard "gravity" style moving a panel with the finger fling ? I use GestureDetection and can use Gesture_onScroll (it's simple "flat" coordinates change). Also there is Gesture_onFling event. My sample is https://www.b4x.com/android/forum/threads/listview-and-gesture-detector.79226/#content But how to program such smooth panel animation when slow finger movement and after the fling ? Any ready sample ? And strange, that distanceY (_onScroll event) and velocityY (_onFling event) at movements to the same direction - are sometimes positive and negative, but movement in the same direction all the time Last edited: May 15, 2017
Hi, All How to code the standard "gravity" style moving a panel with the finger fling ? I use GestureDetection and can use Gesture_onScroll (it's simple "flat" coordinates change). Also there is Gesture_onFling event. My sample is https://www.b4x.com/android/forum/threads/listview-and-gesture-detector.79226/#content But how to program such smooth panel animation when slow finger movement and after the fling ? Any ready sample ? And strange, that distanceY (_onScroll event) and velocityY (_onFling event) at movements to the same direction - are sometimes positive and negative, but movement in the same direction all the time