Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swipe and pinch handlers for webView #12

Open
evoltech opened this issue Mar 23, 2012 · 5 comments
Open

swipe and pinch handlers for webView #12

evoltech opened this issue Mar 23, 2012 · 5 comments
Labels

Comments

@evoltech
Copy link
Member

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

@evoltech
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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 evoltech reopened this Apr 25, 2012
@evoltech
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant