[OpenLayers-Trac] [OpenLayers] #1125: Smoother dragging of the map on older computers

OpenLayers trac at openlayers.org
Sun Nov 11 08:59:32 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 haakeyar):

 Replying to [comment:7 elemoine]:
 > In addition to being called on move events, panMap() is also called from
 within panMapDone(). When called from within panMapDone(),
 this.handler.dragging is set to false since we're done panning. For that
 reason, we just can't set dragging to true.
 >
 > In addition, setCenter() dragging parameter doesn't only specify whether
 or not to trigger movestart/end events. The doc is a bit misleading with
 respect to that. See <http://trac.openlayers.org/ticket/967>.
 >
 > --
 > Eric
 So, maybe my patch is fine without modification then? When the drag is
 finished, the dragging argument would be false. Otherwise, it will be
 true. Or maybe the last call to map.setCenter should be called separately,
 and not be "bundled" with some of the drag-events? That would not be too
 hard to implement either.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1125#comment:9>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list