[OpenLayers-Trac] [OpenLayers] #1125: Smoother dragging of the map on older computers
OpenLayers
trac at openlayers.org
Thu Nov 8 10:46:18 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 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.
--
Ticket URL: <http://trac.openlayers.org/ticket/1125#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list