S sorex Expert Licensed User Longtime User Jul 1, 2015 #1 Hello, When you have a panel with labels/buttons in it that have their own click event how would you trap a swipe event that happends above the label/button? I could add it to each panel where the labels/buttons are in but that's kind of a nasty workaround. How would you solved it?
Hello, When you have a panel with labels/buttons in it that have their own click event how would you trap a swipe event that happends above the label/button? I could add it to each panel where the labels/buttons are in but that's kind of a nasty workaround. How would you solved it?
Cableguy Expert Licensed User Longtime User Jul 1, 2015 #2 Detect the touch_down and touch_up events, if the distance (x,y coordinate) aren't too wide, its a touch, so ignore, if the distance is big, its a swipe, act on it Upvote 0
Detect the touch_down and touch_up events, if the distance (x,y coordinate) aren't too wide, its a touch, so ignore, if the distance is big, its a swipe, act on it
S sorex Expert Licensed User Longtime User Jul 1, 2015 #3 I know that and I added it to the button panels like that. It works fine but I wondered if there was another method. Upvote 0
I know that and I added it to the button panels like that. It works fine but I wondered if there was another method.
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2015 #4 Check this library: https://www.b4x.com/android/forum/threads/21502/#content Upvote 0