Hi,
There is something fundamental that eludes me with the panel_touch events.
I've read everything i could find, but this only deepens the mystery for me
And i find (old) contradictory information, wondering what the latest situation is.
What i need is to capture if the user
- clicked = small abs() difference betheen x-Down and x-Up
- swiped from left to right (or reverse) = big positive or negative difference, but not necessarily
the whole length of the panel.
3 questions if i may:
1. why do i sometimes get (x or y) integers and sometimes decimals (do i use floor to not see that?)
2. what is the meaning of the "as boolean" and "return true" . Return to where? The touch event sub
is not called from the code.
3. Most confusing: when x and y are logged(), you see a series of coordinates between the down and up moment. This means that the touch event continuously fires coordinates between down and up action.
The sub calls another sub which then also gets triggered many times. How to stop that ?
...i must be missing something...
Paul
There is something fundamental that eludes me with the panel_touch events.
I've read everything i could find, but this only deepens the mystery for me
And i find (old) contradictory information, wondering what the latest situation is.
What i need is to capture if the user
- clicked = small abs() difference betheen x-Down and x-Up
- swiped from left to right (or reverse) = big positive or negative difference, but not necessarily
the whole length of the panel.
3 questions if i may:
1. why do i sometimes get (x or y) integers and sometimes decimals (do i use floor to not see that?)
2. what is the meaning of the "as boolean" and "return true" . Return to where? The touch event sub
is not called from the code.
3. Most confusing: when x and y are logged(), you see a series of coordinates between the down and up moment. This means that the touch event continuously fires coordinates between down and up action.
The sub calls another sub which then also gets triggered many times. How to stop that ?
...i must be missing something...
Paul