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:
@@ -19,7 +19,12 @@ function init() {
|
|||||||
-20037508.34, -20037508.34, 20037508.34, 20037508.34
|
-20037508.34, -20037508.34, 20037508.34, 20037508.34
|
||||||
),
|
),
|
||||||
controls: [
|
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.Attribution(),
|
||||||
new OpenLayers.Control.DrawFeature(
|
new OpenLayers.Control.DrawFeature(
|
||||||
vector, OpenLayers.Handler.Point, {id: "point-control"}
|
vector, OpenLayers.Handler.Point, {id: "point-control"}
|
||||||
|
|||||||
Reference in New Issue
Block a user