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

a tags / links in draggable items are not clickable on mobile

Open blntptr opened this issue 3 years ago • 1 comments

On desktop, draggable items work fine, easy to sort them, click links inside, but on mobiles (real mobilea, not mobile view in browsers), only dragging is possible, clicking does not work.

Anyone else had this experience?

blntptr avatar Apr 27 '22 12:04 blntptr

Yes, we have the same problem with clicks on mobile in our project. Using version "^2.24.3".

Our dirty workaround was changing the behavior of draggable library on mobile.

      const options = {
        disabled: isDisabled
      };

      if (this.$vuetify.breakpoint.smAndDown) {
        return {
          ...options,
          handle: ".class-name"
        };
      }

      return options;

When the screen goes to mobile, we use handle property that allows us to perform dragging & dropping only on children element with specific class. We made clicking on mobile working by performing drag and drop only on icon - so the rest of the element could be clickable.

No finesse in that, I know, but maybe this helps someone. Still looking for a better solution.

pbilka46 avatar May 13 '22 06:05 pbilka46