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.Attribution(),
|
||||||
new OpenLayers.Control.TouchNavigation({
|
new OpenLayers.Control.TouchNavigation({
|
||||||
dragPanOptions: {
|
dragPanOptions: {
|
||||||
interval: 100,
|
|
||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -48,11 +48,7 @@ function init() {
|
|||||||
-20037508.34, -20037508.34, 20037508.34, 20037508.34
|
-20037508.34, -20037508.34, 20037508.34, 20037508.34
|
||||||
),
|
),
|
||||||
controls: [
|
controls: [
|
||||||
new OpenLayers.Control.TouchNavigation({
|
new OpenLayers.Control.TouchNavigation(),
|
||||||
dragPanOptions: {
|
|
||||||
interval: 100
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
new OpenLayers.Control.ZoomPanel(),
|
new OpenLayers.Control.ZoomPanel(),
|
||||||
toolbar
|
toolbar
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ function init() {
|
|||||||
new OpenLayers.Control.Attribution(),
|
new OpenLayers.Control.Attribution(),
|
||||||
new OpenLayers.Control.TouchNavigation({
|
new OpenLayers.Control.TouchNavigation({
|
||||||
dragPanOptions: {
|
dragPanOptions: {
|
||||||
interval: 100,
|
|
||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ function init() {
|
|||||||
controls: [
|
controls: [
|
||||||
new OpenLayers.Control.TouchNavigation({
|
new OpenLayers.Control.TouchNavigation({
|
||||||
dragPanOptions: {
|
dragPanOptions: {
|
||||||
interval: 100,
|
|
||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ var init = function () {
|
|||||||
new OpenLayers.Control.Attribution(),
|
new OpenLayers.Control.Attribution(),
|
||||||
new OpenLayers.Control.TouchNavigation({
|
new OpenLayers.Control.TouchNavigation({
|
||||||
dragPanOptions: {
|
dragPanOptions: {
|
||||||
interval: 100,
|
|
||||||
enableKinetic: true
|
enableKinetic: true
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ OpenLayers.Control.DragPan = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Property: interval
|
* Property: interval
|
||||||
* {Integer} The number of milliseconds that should ellapse before
|
* {Integer} The number of milliseconds that should ellapse before
|
||||||
* panning the map again. Set this to increase dragging performance.
|
* panning the map again. Defaults to 1 millisecond. In most cases
|
||||||
* Defaults to 25 milliseconds.
|
* you won't want to change this value. For slow machines/devices
|
||||||
|
* larger values can be tried out.
|
||||||
*/
|
*/
|
||||||
interval: 25,
|
interval: 1,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIProperty: documentDrag
|
* APIProperty: documentDrag
|
||||||
|
|||||||
Reference in New Issue
Block a user