I noticed code in this forum that has the Panel_Touch returning a boolean value to consume the event:
Example:
I'm using B4A 6.5 and the designer generates the touch event as:
without the Boolean return value.
I've done some testing and I don't think is currently necessary for touch events to return a True value to prevent other views from handling the event. In other words the Touch event does not have to return True to consume the event.
Is this true?
TIA
Example:
B4X:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float) As Boolean
'--- some code to process the touch action ---
Return True 'Prevent underling view (if there is one) from handling touch event
end sub
I'm using B4A 6.5 and the designer generates the touch event as:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float)
without the Boolean return value.
I've done some testing and I don't think is currently necessary for touch events to return a True value to prevent other views from handling the event. In other words the Touch event does not have to return True to consume the event.
Is this true?
TIA