Skip to content

Commit

Permalink
Merge pull request #29 from aeternity/ios-navigation
Browse files Browse the repository at this point in the history
iOS: Enable webview navigation gestures
  • Loading branch information
mradkov authored Mar 9, 2020
2 parents 35b6f3c + dec9802 commit e12542d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="AllowBackForwardNavigationGestures" value="true" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
<icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
Expand Down
10 changes: 4 additions & 6 deletions src/popup/router/components/SidebarMenu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ul class="sidebar-menu">
<ul class="sidebar-menu" @click="menuClickHandler">
<li class="menu-close">
<Close @click="closeMenu" />
</li>
Expand Down Expand Up @@ -96,15 +96,13 @@ export default {
computed: mapGetters(['account', 'activeAccountName']),
data: () => ({ showSettingsDropdown: false }),
methods: {
menuClickHandler({ target }) {
if (target.tagName === 'A') this.closeMenu();
},
closeMenu() {
this.$emit('closeMenu');
},
},
watch: {
$route() {
this.closeMenu();
},
},
};
</script>

Expand Down

0 comments on commit e12542d

Please sign in to comment.