From 4676fab86cc550c291b17683ae23408ec0cedcdd Mon Sep 17 00:00:00 2001 From: feruz Date: Thu, 30 Jan 2020 13:39:23 +0200 Subject: [PATCH 1/3] touchstart=>click --- src/components/postElements/body/view/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/postElements/body/view/config.js b/src/components/postElements/body/view/config.js index c1e0b6429..e344d6895 100644 --- a/src/components/postElements/body/view/config.js +++ b/src/components/postElements/body/view/config.js @@ -135,10 +135,10 @@ for (var i = 0; i < images.length; i++) { var resultStr = JSON.stringify(JSON.stringify(result)); var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')'; if (!images[i].classList.contains("video-thumbnail") && !images[i].parentNode.classList.contains("markdown-external-link")) { - images[i].setAttribute("onTouchStart", message); + images[i].setAttribute("onClick", message); } } -document.addEventListener('touchstart', function(event) { +document.addEventListener('click', function(event) { event.preventDefault(); var el = event.target; while (el.tagName !== 'A') { From f24378ef60b6ac6bcbfb4aaeea74e1b2d9398eb0 Mon Sep 17 00:00:00 2001 From: feruz Date: Thu, 30 Jan 2020 13:50:52 +0200 Subject: [PATCH 2/3] rm preventDefault --- src/components/postElements/body/view/config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/postElements/body/view/config.js b/src/components/postElements/body/view/config.js index e344d6895..a50ba85a9 100644 --- a/src/components/postElements/body/view/config.js +++ b/src/components/postElements/body/view/config.js @@ -139,7 +139,6 @@ for (var i = 0; i < images.length; i++) { } } document.addEventListener('click', function(event) { - event.preventDefault(); var el = event.target; while (el.tagName !== 'A') { if (!el.parentNode) { From 6c461f377c45706d5a3ba1a55a11244dbb1966b7 Mon Sep 17 00:00:00 2001 From: feruz Date: Thu, 30 Jan 2020 13:53:39 +0200 Subject: [PATCH 3/3] decrease swipe back area --- src/navigation/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navigation/routes.js b/src/navigation/routes.js index 84a363405..d1d13680a 100644 --- a/src/navigation/routes.js +++ b/src/navigation/routes.js @@ -112,7 +112,7 @@ const stackNavigator = createStackNavigator( screen: Post, navigationOptions: { gesturesEnabled: true, - gestureResponseDistance: { horizontal: 100 }, + gestureResponseDistance: { horizontal: 70 }, }, }, [ROUTES.SCREENS.EDITOR]: { screen: Editor },