Making it so the click handler works even if other listeners stop propagation on touchstart. r=elemoine (closes #3089)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-02-22 15:28:31 +00:00
parent 629720b2d1
commit 8965a61c75

View File

@@ -269,10 +269,10 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, {
* touches property from last touchstart or touchmove
*/
touchend: function(evt) {
if(!evt) {
var last = this.last || this.down;
if (!evt || !last) {
return false;
}
var last = this.last || this.down;
evt.xy = last.xy;
evt.lastTouches = last.touches;
return evt.xy ? this.click(evt) : false;