mobile example - set interval to 0 in the drag handler, no functional change

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-02-22 14:11:49 +00:00
parent 9e2eef5f47
commit 2f42aeb440

View File

@@ -19,7 +19,12 @@ function init() {
-20037508.34, -20037508.34, 20037508.34, 20037508.34
),
controls: [
new OpenLayers.Control.TouchNavigation({dragPanOptions: {enableKinetic: true}}),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 0, // non-zero kills performance on some mobile phones
enableKinetic: true
}
}),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.DrawFeature(
vector, OpenLayers.Handler.Point, {id: "point-control"}