tdf#124146 fixes for iOS

Change-Id: I67e596ba1f295556eac60c8cfa5b5c43e6273a34
Reviewed-on: https://gerrit.libreoffice.org/75071
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index c2203d9..bd90e32 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -59,18 +59,20 @@ L.Control.LokDialog = L.Control.extend({

		if (target) {
			if (ev.pointers.length == 1) {
				var delta = -ev.deltaY;
				if (ev.type == 'panstart') {
					firstTouchPositionX = ev.pointers[0].offsetX;
					firstTouchPositionY = ev.pointers[0].offsetY;
					this._postWindowGestureEvent(dialogID, 'panBegin', firstTouchPositionX, firstTouchPositionY, ev.deltaY);
					var rect = ev.target.getBoundingClientRect();
					firstTouchPositionX = ev.center.x - rect.x;
					firstTouchPositionY = ev.center.y - rect.y;
					this._postWindowGestureEvent(dialogID, 'panBegin', firstTouchPositionX, firstTouchPositionY, delta);
				}
				else if (ev.type == 'panstop') {
					this._postWindowGestureEvent(dialogID, 'panEnd', firstTouchPositionX, firstTouchPositionY, ev.deltaY);
					this._postWindowGestureEvent(dialogID, 'panEnd', firstTouchPositionX, firstTouchPositionY, delta);
					firstTouchPositionX = null;
					firstTouchPositionY = null;
				}
				else {
					this._postWindowGestureEvent(dialogID, 'panUpdate', firstTouchPositionX, firstTouchPositionY, ev.deltaY);
					this._postWindowGestureEvent(dialogID, 'panUpdate', firstTouchPositionX, firstTouchPositionY, delta);
				}
			}
			else {