summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@collabora.com>2020-12-02 14:40:17 +0300
committerGökay Şatır <gokaysatir@collabora.com>2020-12-02 14:40:17 +0300
commitcd7ba5b7e5ba0f339207f42dcadde7ae33dd87b9 (patch)
tree1eaea3def1f94b7a558f2a9b77b768a268ea8c5e
parentcypress: remove this prototype of interference testing. (diff)
downloadonline-private/gokay/scrollCalc.tar.gz
online-private/gokay/scrollCalc.zip
Don't fire _onScroll twice on mobile. private/gokay/scrollCalc
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Ib46e6f9359955b9032ac7c9e7f1a626112a9a406
-rw-r--r--loleaflet/src/control/Control.Scroll.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.Scroll.js b/loleaflet/src/control/Control.Scroll.js
index 8f03ef579f..e1579ad5c1 100644
--- a/loleaflet/src/control/Control.Scroll.js
+++ b/loleaflet/src/control/Control.Scroll.js
@@ -123,7 +123,8 @@ L.Control.Scroll = L.Control.extend({
_onScroll: function (e) {
if (this._map._docLayer._docType === 'spreadsheet') {
- this._onCalcScroll(e);
+ if (window.mode.isDesktop())
+ this._onCalcScroll(e);
return;
}