[OpenLayers-Trac] [OpenLayers] #1125: Smoother dragging of the map on older computers
OpenLayers
trac at openlayers.org
Sun Nov 11 03:48:28 EST 2007
#1125: Smoother dragging of the map on older computers
----------------------------------+-----------------------------------------
Reporter: haakeyar | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone:
Component: Control.DragFeature | Version: SVN
Resolution: | Keywords: review
----------------------------------+-----------------------------------------
Comment (by elemoine):
Replying to [comment:4 ahocevar]:
> Replying to [comment:2 haakeyar]:
> > Which component would you suggest if it should not be in
Control.DragFeature? As I said, I don't know the code structure very well.
The reason that I chose Control.DragFeature was that the code was located
in Control/DragPan.js.
>
> I looked at your code and saw that what you do is actually delay the
action of the panMap function in Control/DragPan. The panMap function is
linked to the move function of Handler/DragPan.
>
> So I would suggest to do the delay in Handler/Drag.js. By doing so,
every control interaction that is linked to the move function of the
handler will feel more responsive.
>
> I attached a patch with the required change. It should have the same
effect on responsiveness of map dragging as the original patch.
>
> I created a patch as an alternative of yours.
I feel that Handler.Drag should stay generic as some controls may not want
delayed events.
If this delay mechanism should really be implemented in Handler.Drag,
which I'm still not sure, one option would be to add a "delay" option to
Handler.Drag.
--
Ticket URL: <http://trac.openlayers.org/ticket/1125#comment:8>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list