From 9c61ca932b168c9088a6383a09cfb76e059762cd Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 19 Jun 2018 15:11:38 +0200
Subject: [PATCH] when moving map long click is canceled

---
 frontend-js/src/main/js/map/AbstractCustomMap.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/frontend-js/src/main/js/map/AbstractCustomMap.js b/frontend-js/src/main/js/map/AbstractCustomMap.js
index b6086fccda..053a5c31af 100644
--- a/frontend-js/src/main/js/map/AbstractCustomMap.js
+++ b/frontend-js/src/main/js/map/AbstractCustomMap.js
@@ -216,6 +216,9 @@ AbstractCustomMap.prototype.registerMapClickEvents = function () {
   this.getMapCanvas().addListener('mouseup', function () {
     mousedUp = true;
   });
+  $(self.getElement()).on("touchstart", function () {
+    mousedUp = true;
+  });
   // noinspection SpellCheckingInspection
   this.getMapCanvas().addListener('dragstart', function () {
     mousedUp = true;
-- 
GitLab