# \[SOLVED\] JQuery Drag and Drop causing 'issues'

**URL:** <https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496>\
**Category:** Plugins\
**Created:** [July 16, 2018, 11:33am UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496 "2018-07-16T11:33:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 11:33am UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/1 "2018-07-16T11:33:39Z")

</div>

I’m encountering a problem when using Bubble’s Drag and Drop plugin and I’m can’t find a way around it.

I put a DropArea and a DragDrop group on the page. I want to move the DragDrop group to a set location once it is dropped on the DropArea. I can get it working perfectly but the action to Move the element causes a bubble ‘issue’ so I can’t deploy to live.

![51](https://us1.discourse-cdn.com/bubble/original/3X/5/7/57808ba00609c13fb13da8f54c7be7567897ce3f.png)

I’ve traced the problem to the checkbox ‘Make this element droppable’. Toggling it on/off toggle’s the issue. And, when it is on, the Move action has an element name of bTToV0.

Does anyone know how I can get around this please?

---

<div class="post-metadata">

**Author:** ![Bubbleboy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bubbleboy/32/19512_2.png) [@Bubbleboy](https://forum.bubble.io/u/Bubbleboy)\
**Post date:** [July 16, 2018, 11:48am UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/2 "2018-07-16T11:48:55Z")

</div>

I use drag and drop extensively in my app…its actually the foundation of the app…as such ive pondered and spent much time perfecting. …and have done so for some time. now i might be wrong but you cant have both. if you make it drop-able and then try and apply the action to ove…it will throw and error. whats your use case

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 12:01pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/3 "2018-07-16T12:01:50Z")

</div>

@Bubbleboy - I am building slide to delete functionality on RG - iOS style. It works beautifully but throws that error. Thinking it might be the RG, I created a blank page and placed the two elements on it. Then set up a Move Action under the DropArea. Then checked the ‘Make draggable’ checkbox and the issue appears without an RG and with only two elements on the page.

---

<div class="post-metadata">

**Author:** ![Bubbleboy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bubbleboy/32/19512_2.png) [@Bubbleboy](https://forum.bubble.io/u/Bubbleboy)\
**Post date:** [July 16, 2018, 12:22pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/4 "2018-07-16T12:22:35Z")

</div>

why make it droppable? no need. try this:

1. Create droparea…lets say 200 px wide and 25 high
2. Create a drop/group and place inside the drop area constrained to parent …make that say 25 x 25  
3 add an input and hide it getting the x position of the dropgroup… actually don’t hide it yet.
3. preview and drag your dropgroup you should see x coordinates…perform and action based on x position and then what ever you want

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 12:32pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/5 "2018-07-16T12:32:21Z")

</div>

@Bubbleboy I want to give you a hug. I’ve just been experimenting with removing the droppable and was getting somewhere but not where I wanted. The input to get the co-ordinates is what I was missing. I’m going to grab lunch then I’ll dive in and build it. Thank you.

Since you are a drag ans drop expert, my next challenge is even more difficult. I need to create something like this [https://www.npmjs.com/package/ionic2-super-tabs](https://www.npmjs.com/package/ionic2-super-tabs) using bubble?

I will have many tabs (dynamic and loaded from a DB table) so some will be off-screen. I need to allow the user to swipe either the tabs area or the content area below and have them move back and forth.

Can you think of a combination of Drag and Drop and RG horizontal scrolling that might be the best starting point?

---

<div class="post-metadata">

**Author:** ![Bubbleboy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bubbleboy/32/19512_2.png) [@Bubbleboy](https://forum.bubble.io/u/Bubbleboy)\
**Post date:** [July 16, 2018, 1:11pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/6 "2018-07-16T13:11:34Z")

</div>

don’t go with the horizontal scroller approach that will not work…too long winded to explain…it won’t…you are far better to take the approach of animate groups based on gestures…especially when you are across devices and responsive…you get the same effect…if that’s what you are after. i use hammer.js and @mishav awesome toolbox but check the plugins… you should find detection zone that does this

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 3:10pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/7 "2018-07-16T15:10:29Z")

</div>

Thanks @Bubbleboy I’ll try that if I ever get the Swipe to Delete working. I’ve spent hours and I can get it to detect a swipe left (\<0) and I move it to -100 (based on co-ordinates) but after that I can’t get it to detect swipe right. I tried \>0 and \>100 and \>90 and anything I can think of but nothing works. The input value is not much help because it seems to freeze the moment a workflow is triggered so I can’t see what the draggable group’s X value is, is it -100 or -20 ish as I am seeing? Have you any tips on movement (co-ordinates or relative to another element)? I’ve tried both and I can’t make swipe right work.

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 3:45pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/8 "2018-07-16T15:45:12Z")

</div>

I’ve made a sample app with the exact sizes and settings I am using so you can do a quick sanity check for me @Bubbleboy when you have some time.

> **[Bubble Editor - swipe-to-del](https://bubble.io/page?name=index&id=swipe-to-del&tab=tabs-6)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [July 16, 2018, 6:47pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/9 "2018-07-16T18:47:17Z")

</div>

@Bubbleboy you are off the hook. I got it working. Your suggestions got me thinking about the challenge in a different way which helped. It’s not straightforward so I’m documenting it now and will post it on the forum to help others. Many thanks for your help.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [July 18, 2019, 5:21pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/10 "2019-07-18T17:21:32Z")

</div>

@patricia did you ever document and load this onto the forum? Wondering what the solution was.

Cheers

---

<div class="post-metadata">

**Author:** ![patricia](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/patricia/32/57583_2.png) [@patricia](https://forum.bubble.io/u/patricia)\
**Post date:** [August 1, 2019, 1:47pm UTC](https://forum.bubble.io/t/solved-jquery-drag-and-drop-causing-issues/33496/11 "2019-08-01T13:47:25Z")

</div>

@boston85719 my apologies. I am no longer active on the forum. Haven’t been around for almost a year. To be honest I can’t remember exactly what I did but I do recall I hit more trouble and the solution was to use Zeroqode’s plugin Swipe to Workflow Action.
