From 4d52d4aeb5801de258eddb333dc831670c7ff210 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 6 Jun 2013 10:30:44 +0200 Subject: [PATCH] Drag interval of 0 (i.e. no separate cycle) seems appropriate now The reason for setting this to 1 was ancient IPhones with ancient iOS versions. On all other devices, 0 seems to work better, and it removes the overhead of spawning a separate cycle for each drag. --- lib/OpenLayers/Control/DragPan.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Control/DragPan.js b/lib/OpenLayers/Control/DragPan.js index 2e2146f2cd..981a649f28 100644 --- a/lib/OpenLayers/Control/DragPan.js +++ b/lib/OpenLayers/Control/DragPan.js @@ -32,11 +32,12 @@ OpenLayers.Control.DragPan = OpenLayers.Class(OpenLayers.Control, { /** * Property: interval * {Integer} The number of milliseconds that should ellapse before - * 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. + * panning the map again. Defaults to 0 milliseconds, which means that + * no separate cycle is used for panning. In most cases you won't want + * to change this value. For slow machines/devices larger values can be + * tried out. */ - interval: 1, + interval: 0, /** * APIProperty: documentDrag