March-hare / MarchHare-Mobile

Other
4 stars 0 forks source link

swipe and pinch handlers for webView #12

Open evoltech opened 12 years ago

evoltech commented 12 years ago

These events already work on the mapView branch but they need to be added for the webview

evoltech commented 12 years ago

This is a complex issue. We are relying on the base webview catching events from the user as opposed to the calling window. This is how the popup windows for the incidents are loaded. An alternative that might work is using a javascript gesture library. I cant seem to get this working on the avd I am using, but maybe that is a failing of avd. I commited some rudimentary tests for this into the corresponding branch

evoltech commented 12 years ago

I noticed that this was working as expected with drag handlers when using OpenLayers-2.12-rc1. Upgrading OpenLayers on the back-end may resolve this issue.

evoltech commented 12 years ago

Its not possible to test pinch in the emulator, but in upgrading to OL 2.12-rc2 I did find we are able to get drag. I am going to close this and assume that the upgrade added pinch by default, but if it did not then this can be done by adding the pinch to zoom control

evoltech commented 12 years ago

Tested pinch zoom on a phone today and it seems like it is getting caught by the webview not the OL code. Did verify that swipe works as expected.

evoltech commented 12 years ago

This is working as expected if not slow on the iOS port