[OpenLayers-Trac] Re: [OpenLayers] #3133: click handler should distinguish between pinches, clicks, and double-clicks (was: click handler calls dblclick callback even if clicks are very far away)

OpenLayers trac-20090302 at openlayers.org
Sun Mar 6 19:21:44 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:              
---------------------------+------------------------------------------------
Changes (by tschaub):

  * state:  Commit =>


Old description:

> The click handler should be made configurable so that it only calls the
> dblclick callback if two clicks are within the given pixel tolerance.

New description:

 The click handler should be made configurable so that it only calls the
 dblclick callback if two clicks are within the given pixel tolerance.  In
 addition, the existing {{{pixelTolerance}}} property should be used to
 check displacements at the end of a touchstart, touchmove, touchend
 sequence.  The click callback should not be called if touches move more
 than the provided tolerance.

--

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


More information about the Trac mailing list