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:
@@ -51,7 +51,6 @@ var init = function (onSelectFeatureFunction) {
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.TouchNavigation({
|
||||
dragPanOptions: {
|
||||
interval: 100,
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -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
|
||||
],
|
||||
|
||||
@@ -29,7 +29,6 @@ function init() {
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.TouchNavigation({
|
||||
dragPanOptions: {
|
||||
interval: 100,
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -14,7 +14,6 @@ function init() {
|
||||
controls: [
|
||||
new OpenLayers.Control.TouchNavigation({
|
||||
dragPanOptions: {
|
||||
interval: 100,
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -23,7 +23,6 @@ var init = function () {
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.TouchNavigation({
|
||||
dragPanOptions: {
|
||||
interval: 100,
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user