[OpenLayers-Commits] r11253 -
trunk/openlayers/lib/OpenLayers/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Feb 22 10:28:31 EST 2011
Author: tschaub
Date: 2011-02-22 07:28:31 -0800 (Tue, 22 Feb 2011)
New Revision: 11253
Modified:
trunk/openlayers/lib/OpenLayers/Handler/Click.js
Log:
Making it so the click handler works even if other listeners stop propagation on touchstart. r=elemoine (closes #3089)
Modified: trunk/openlayers/lib/OpenLayers/Handler/Click.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Click.js 2011-02-22 15:27:55 UTC (rev 11252)
+++ trunk/openlayers/lib/OpenLayers/Handler/Click.js 2011-02-22 15:28:31 UTC (rev 11253)
@@ -269,10 +269,10 @@
* 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;
More information about the Commits
mailing list