webview + panel + touchevent problem

Dirk A

Member
Licensed User
Longtime User
Hello ,
I'm using googlemaps in a webview . On top of my webview is a transparent panel which I use to catch touch events . My question is :
how do I pass my touch event to my webview after i have processed it in my pnl_touch event ?
Because now , i'm able to catch the touch event of the panel , but i'm not able to drag or move my google map any more ...

any thoughts ...
 

Dirk A

Member
Licensed User
Longtime User
Klaus,

I'm drawing my own markers on the overlaying panel so that I don't need to redraw the whole mapview when I want to move my markers. And when I move my map (using a sweep touch) i want to move my markers accordingly. (EDIT : By moving the markers I mean updating their position programatically , not using the mouse)

I allready tried to add listeners for mouse events using javscript. The problem is that , although i can catch the events in b4a ,it seems that the coordinates returned by mousedown , mousemove and mouseup are all the same when I do one "touch sweep". (when map dragging is enabled)
When I disable "map dragging" the coordinates are ok but i can't drag the map:confused:
so that's why I want to catch the touch event with my panel
 
Last edited:
Upvote 0

Dirk A

Member
Licensed User
Longtime User
Does anybody else know how to pass the touch event of the panel to the webview ?
your help would be greatly appreciated !
 
Upvote 0
Top