[Done] Switchmobile only works when you tap on it, not when you slide
Posted: Tue Feb 25, 2025 6:21 pm
If you slide the switch, as example on WebView left or in Android app left or right, it generates no MobileEvents().
It works only when you tap direct on it. Maybe it is working as expected. I dont know. But then, it is difficult to get the actual real state of the SwitchMobile()
It works only when you tap direct on it. Maybe it is working as expected. I dont know. But then, it is difficult to get the actual real state of the SwitchMobile()
Code: Select all
If ContainerMobile(#PB_Any, #PB_Mobile_Page, "padding:16px")
SwitchMobile(0)
Debug "Enabling the switch..."
SetMobileState(0, #True)
CloseMobileContainer()
EndIf
Procedure MobileEvents()
Select EventMobile()
Case 0
Debug "Switch state: " + GetMobileState(0)
EndSelect
EndProcedure
BindEvent(#PB_Event_Mobile, @MobileEvents())