Skip to content

Support dragging of scrollable containers? #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
niksite opened this issue May 9, 2025 · 0 comments
Open

Support dragging of scrollable containers? #244

niksite opened this issue May 9, 2025 · 0 comments

Comments

@niksite
Copy link

niksite commented May 9, 2025

I have the following code. It's essentially several Bootstrap columns (b-col) within a row (b-row). The columns have a limited height, while the assets-table inside each can be much taller, making it scrollable.

<template>
  <vue-draggable
    v-model="tileNames"
    tag="b-row"
    animation="200"
  >
    <b-col
      v-for="tile in tiles"
      :key="tile.id"
      cols="12"
      sm="6"
      lg="3"
      class="px-1 mb-3"
    >
      <assets-table :tile="tile" />
    </b-col>
  </vue-draggable>
</template>

As the screenshot shows, when I drag a b-col, its dragged representation also incorrectly clones objects from below. For example, if I scroll the content within a column to the bottom, dragging that column then also includes elements from above in the dragged representation.
Image

How can I fix this? I would like the dragged representation to be limited to the b-col itself, reflecting only the column, and not capture any irrelevant content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant