pointer interaction might also receive events that are not pointer events

This commit is contained in:
tsauerwein
2014-02-26 13:51:50 +01:00
parent 411b7257cf
commit 12b0fee790

View File

@@ -129,7 +129,10 @@ ol.interaction.PointerInteraction.prototype.handlePointerDown =
*/
ol.interaction.PointerInteraction.prototype.handleMapBrowserEvent =
function(mapBrowserEvent) {
goog.asserts.assertInstanceof(mapBrowserEvent, ol.MapBrowserPointerEvent);
if (!(mapBrowserEvent instanceof ol.MapBrowserPointerEvent)) {
return true;
}
var mapBrowserPointerEvent =
/** @type {ol.MapBrowserPointerEvent} */ (mapBrowserEvent);