Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

Ghost element doesn't move with the speed of the pointer on mobile

Open yanko-belov opened this issue 3 years ago • 5 comments

Hello! :wave:

I have a problem with the speed of the ghost element on mobile.

Code:

<draggable
    v-model="slot.slot_component_configurations"
    class="fill-width"
    handle=".draggable-handler"
    v-bind="{
        animation: 200,
        group: `group-${sI}`,
    }"
    @change="changeHandler"
>
    <transition-group>
        <component-configuration
            v-for="(componentConfiguration, cI) in slot.slot_component_configurations"
            :component-configuration="componentConfiguration"
            :advanced-mode="advancedModeMixin"
            :key="componentConfiguration.uuid"
            @change-name="componentConfiguration.name = $event"
            @delete="deleteComponent(sI, cI)"
            @input="handleInput(sI, cI, $event)"
        />
    </transition-group>
</draggable>

The result on mobile (this is the actual problem):

slow

As you can see the ghost element is way slower than the actual movement of the pointer.


The result on desktop (this is how I want it to work also on mobile):

fast

Does anyone know how to fix this?

yanko-belov avatar Oct 07 '21 11:10 yanko-belov

Same here. Really want a solution

phantomlsh avatar Dec 27 '21 02:12 phantomlsh

Experiencing the same issue... any clue of the root issue or a workaround you found?

joel-loycom avatar Apr 26 '22 14:04 joel-loycom

@belov91 did you find the solution? Having the same issue.

mehmoona-bb avatar Dec 07 '22 04:12 mehmoona-bb

@mehmoona-bb I haven't found a solution.

yanko-belov avatar Dec 08 '22 07:12 yanko-belov

@yanko-belov I also had a similar issue and found that there is a bug when there is a transition-duration option in the style of a sub-element in the <transition-group>. After removing the style, I confirmed that it was working properly.

Ssoon-m avatar Mar 29 '23 06:03 Ssoon-m