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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user