[OpenLayers-Trac] Re: [OpenLayers] #3133: click handler should distinguish between pinches, clicks, and double-clicks

OpenLayers trac-20090302 at openlayers.org
Thu Mar 10 20:52:56 EST 2011


#3133: click handler should distinguish between pinches, clicks, and double-clicks
---------------------------+------------------------------------------------
 Reporter:  tschaub        |       Owner:  tschaub     
     Type:  bug            |      Status:  new         
 Priority:  minor          |   Milestone:  2.11 Release
Component:  Handler.Click  |     Version:  2.10        
 Keywords:  mobile         |       State:  Commit      
---------------------------+------------------------------------------------

Comment(by bbinet):

 I also think the patch is good for commit, and the following points are
 minor or could be adressed in separate tickets:

 * in touchmove method we could check first that this.down is set (as it is
 done for touchend method) since we don't need to update this.last if we
 haven't received any touchstart.

 * currently, when making a double tap which does not
 passesDblclickTolerance, neither the click callback nor the dblclick
 callback are called. Don't you think the single click callback should
 rather get called twice instead?

 * as Andreas mentioned, the patch would need to be updated with the last
 commits from the sandbox.

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


More information about the Trac mailing list