Ticket #3317 (closed feature: fixed)
sensible defaut for dragpan interval
|Reported by:||erilem||Owned by:|
The dragpan control has an interval property. Setting this property to a positive value results in moving the map every interval milliseconds as opposed to on every mousemove during dragging.
The default value for interval is 25 (milliseconds).
Experiments in various browsers, including in touch devices, show that isn't a good value.
As an example, open http://www.openlayers.org/dev/examples/fullScreen.html in FireFox, zoom a bit to see more details, and drag the map. The map shakes. Now open the FireBug console, and do
map.controls.dragPan.handler.interval = 1
The map doesn't shake anymore.
Setting interval to 0 yields good results as well in most browsers, but it makes the map undraggable in the native browser of the 3G iPhone, see #3093.
So I'd suggest changing the default value from 25 to 1 in the DragPan prototype.
Having sensible default values is important, so I'd suggest to include this change in the 2.11 release.