diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2020-12-02 14:40:17 +0300 |
---|---|---|
committer | Gökay Şatır <gokaysatir@collabora.com> | 2020-12-02 14:40:17 +0300 |
commit | cd7ba5b7e5ba0f339207f42dcadde7ae33dd87b9 (patch) | |
tree | 1eaea3def1f94b7a558f2a9b77b768a268ea8c5e | |
parent | cypress: remove this prototype of interference testing. (diff) | |
download | online-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.js | 3 |
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; } |