fix: scroll if field or section is dragged to top or bottom

This commit is contained in:
Shariq Ansari 2022-10-19 12:55:52 +05:30
parent 68a415c2b2
commit 8564b93dee
3 changed files with 6 additions and 0 deletions

View file

@ -48,6 +48,8 @@ let fields = computed(() => {
<SearchBox v-model="search_text" />
<draggable
class="fields-container"
:scroll-sensitivity="100"
:force-fallback="true"
:list="fields"
:group="{ name: 'fields', pull: 'clone', put: false }"
:sort="false"

View file

@ -64,6 +64,8 @@ let hovered = ref(false);
:style="{
backgroundColor: column.fields.length ? null : 'var(--gray-50)'
}"
:scroll-sensitivity="100"
:force-fallback="true"
v-model="column.fields"
group="fields"
:animation="150"

View file

@ -42,6 +42,8 @@ function activate_tab(tab) {
:class="[active_tab == tab.df.name ? 'active' : '']"
>
<draggable
:scroll-sensitivity="100"
:force-fallback="true"
class="tab-content-container"
v-model="tab.sections"
group="sections"