Skip to content

Commit

Permalink
sensible defaut for dragpan interval, r=crschmidt (#3317)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
Éric Lemoine committed May 30, 2011
1 parent d6698e3 commit 7a51a78
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion examples/mobile-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ var init = function (onSelectFeatureFunction) {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),
Expand Down
6 changes: 1 addition & 5 deletions examples/mobile-drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
Expand Down
1 change: 0 additions & 1 deletion examples/mobile-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function init() {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),
Expand Down
1 change: 0 additions & 1 deletion examples/mobile-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function init() {
controls: [
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),
Expand Down
1 change: 0 additions & 1 deletion examples/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var init = function () {
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
interval: 100,
enableKinetic: true
}
}),
Expand Down
7 changes: 4 additions & 3 deletions lib/OpenLayers/Control/DragPan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a51a78

Please sign in to comment.