[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Mon Aug 31 17:22:07 UTC 2020
loleaflet/src/control/Control.PartsPreview.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 57226f19818ad4c06981186821579d5a5c53a032
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Mon Aug 31 18:45:45 2020 +0530
Commit: Pranam Lashkari <lpranam at collabora.com>
CommitDate: Mon Aug 31 19:21:56 2020 +0200
leaflet: fixed js error in slide reordering with touch screen
Change-Id: I7e1c864640f5829166616e5bf40b95646d913b23
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101756
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam at collabora.com>
diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index ca5155d4d..e529fad22 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -588,7 +588,7 @@ L.Control.PartsPreview = L.Control.extend({
e.preventDefault();
}
- this.currentNode = document.elementFromPoint(e.touches[0].clientX, e.touches[0].clientY);
+ this.currentNode = document.elementFromPoint(e.originalEvent.touches[0].clientX, e.originalEvent.touches[0].clientY);
if (this.currentNode !== this.previousNode && this.previousNode !== null) {
$('.preview-frame').removeClass('preview-img-dropsite');
@@ -600,8 +600,8 @@ L.Control.PartsPreview = L.Control.extend({
this.previousNode = this.currentNode;
- $(this.draggedSlide).css('left', e.touches[0].clientX - (e.target.width/2));
- $(this.draggedSlide).css('top', e.touches[0].clientY - e.target.height);
+ $(this.draggedSlide).css('left', e.originalEvent.touches[0].clientX - (e.target.width/2));
+ $(this.draggedSlide).css('top', e.originalEvent.touches[0].clientY - e.target.height);
return false;
},
More information about the Libreoffice-commits
mailing list