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.
This commit is contained in:
ahocevar
2013-06-06 10:30:44 +02:00
committed by Bart van den Eijnden
parent 1e94821042
commit 4d52d4aeb5
+5 -4
View File
@@ -32,11 +32,12 @@ 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. Defaults to 1 millisecond. In most cases * panning the map again. Defaults to 0 milliseconds, which means that
* you won't want to change this value. For slow machines/devices * no separate cycle is used for panning. In most cases you won't want
* larger values can be tried out. * to change this value. For slow machines/devices larger values can be
* tried out.
*/ */
interval: 1, interval: 0,
/** /**
* APIProperty: documentDrag * APIProperty: documentDrag