[OpenLayers-Trac] [OpenLayers] #3317: sensible defaut for dragpan
interval
OpenLayers
trac-20090302 at openlayers.org
Wed May 25 16:28:08 EDT 2011
#3317: sensible defaut for dragpan interval
-----------------------------+----------------------------------------------
Reporter: erilem | Owner:
Type: feature | Status: new
Priority: major | Milestone: 2.11 Release
Component: Control.DragPan | Version: 2.11 RC1
Keywords: | State:
-----------------------------+----------------------------------------------
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[0].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.
--
Ticket URL: <http://trac.openlayers.org/ticket/3317>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list