Skip to content

Commit

Permalink
Merge pull request #4213 from nextcloud/fix/leftover-hammerjs
Browse files Browse the repository at this point in the history
fix: Remove leftovers of hammerJS
  • Loading branch information
susnux committed Jun 15, 2023
2 parents 8482516 + 4339993 commit d87b428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ export default {
})
},
unmounted() {
this.mc.off('swipeleft swiperight')
this.mc.destroy()
unsubscribe('toggle-navigation', this.toggleNavigationByEventBus)
},
Expand Down
5 changes: 2 additions & 3 deletions src/components/NcModal/NcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,12 @@ export default {
},
beforeDestroy() {
window.removeEventListener('keydown', this.handleKeydown)
this.mc.off('swipeleft swiperight')
this.mc.destroy()
this.mc.stop()
},
mounted() {
// init clear view
this.useFocusTrap()
useSwipe(this.$refs.mask, {
this.mc = useSwipe(this.$refs.mask, {
onSwipeEnd: this.handleSwipe,
})
Expand Down

0 comments on commit d87b428

Please sign in to comment.