Why "Wait for" does not catch the mouseup event of a JQueryElement object when it is passed as a parameter to a subroutine.
B4X:
Sub ModalX(divx As JQueryElement)
'
...
'
Dim BtnClick As String = ""
'
'Wait For divx_MouseUp (Params As Map) '<<--- Why this code does not work?
Wait For modal1_Mouseup (Params As Map) '<<--- This code does work
'
BtnClick = Params.Get("target")
Log("Boton Click: " & BtnClick)
'
....
'
End Sub
You can setup the sub in the websocket class and just relay all the info to a sub in a module using CallSubDelayed or CallSub(if what you do is thread safe) along with the websocket object (if you need to send something back to the client after processing the event)