fix: Properly scroll on mobile devices
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
-->
|
||||
|
||||
<template>
|
||||
<div class="board-wrapper" :tabindex="-1">
|
||||
<div class="board-wrapper" :tabindex="-1" @touchend="fixActionRestriction">
|
||||
<Controls :board="board" />
|
||||
|
||||
<transition name="fade" mode="out-in">
|
||||
@@ -217,6 +217,13 @@ export default {
|
||||
window.removeEventListener('mouseup', this.stopMouseDrag)
|
||||
window.removeEventListener('mouseleave', this.stopMouseDrag)
|
||||
},
|
||||
|
||||
fixActionRestriction() {
|
||||
document.body.classList.remove(
|
||||
'smooth-dnd-no-user-select',
|
||||
'smooth-dnd-disable-touch-action',
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user