mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
Merge pull request #1536 from esteemapp/touchstart
Touchstart to click and swipe back area decrease
This commit is contained in:
commit
382ebce3cb
@ -135,11 +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) {
|
||||
event.preventDefault();
|
||||
document.addEventListener('click', function(event) {
|
||||
var el = event.target;
|
||||
while (el.tagName !== 'A') {
|
||||
if (!el.parentNode) {
|
||||
|
@ -112,7 +112,7 @@ const stackNavigator = createStackNavigator(
|
||||
screen: Post,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: true,
|
||||
gestureResponseDistance: { horizontal: 100 },
|
||||
gestureResponseDistance: { horizontal: 70 },
|
||||
},
|
||||
},
|
||||
[ROUTES.SCREENS.EDITOR]: { screen: Editor },
|
||||
|
Loading…
Reference in New Issue
Block a user