sensible defaut for dragpan interval, r=crschmidt (#3317)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-05-30 12:55:16 +00:00
parent d6698e3771
commit 7a51a782bc
6 changed files with 5 additions and 12 deletions

View File

@@ -51,7 +51,6 @@ var init = function (onSelectFeatureFunction) {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),

View File

@@ -48,11 +48,7 @@ function init() {
-20037508.34, -20037508.34, 20037508.34, 20037508.34
),
controls: [
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100
}
}),
new OpenLayers.Control.TouchNavigation(),
new OpenLayers.Control.ZoomPanel(),
toolbar
],

View File

@@ -29,7 +29,6 @@ function init() {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),

View File

@@ -14,7 +14,6 @@ function init() {
controls: [
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),

View File

@@ -23,7 +23,6 @@ var init = function () {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),

View File

@@ -32,10 +32,11 @@ OpenLayers.Control.DragPan = OpenLayers.Class(OpenLayers.Control, {
/**
* Property: interval
* {Integer} The number of milliseconds that should ellapse before
* panning the map again. Set this to increase dragging performance.
* Defaults to 25 milliseconds.
* panning the map again. Defaults to 1 millisecond. In most cases
* you won't want to change this value. For slow machines/devices
* larger values can be tried out.
*/
interval: 25,
interval: 1,
/**
* APIProperty: documentDrag