00:00
00:00
Newgrounds Background Image Theme

LegendaryWolfeh just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Jquery UI droppable - threshold?

894 Views | 1 Reply
New Topic Respond to this Topic

Jquery UI droppable - threshold? 2019-06-13 15:51:03


Hey


I'm creating this drag and drop thing. The idea is you drag some text over a box and it adds it to that box as a list.


https://jsfiddle.net/g8qu7rp6/


You can swipe left or right (in the button container) and you'll see the text move over to reveal more buttons. This is just for an example, there's a much neater way to pan through these.


My main issue isn't adding text to the box above, that's fine. I'd just like it so that when you swipe left or right, it doesn't drag the button.


Maybe the left and right dragging of the button won't kick in until you've dragged it up on the y by like 50px?


How can I do that? I can't get my head round it. @diki ?


The drag and drop functionality doesn't work and the swiping doesn't work either.


Also why are you saying swipe? Are you assuming we're going to pull this up on mobile for you or something?


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))