dragdealer icon indicating copy to clipboard operation
dragdealer copied to clipboard

Change slide dragging less than half page

Open luigicarlini1988 opened this issue 9 years ago • 7 comments

Hi guys, i noticed that creating a slideshow with dragdealer, like in this demo:

http://tympanus.net/Development/DraggableDualViewSlideshow/

For passing from one slide to another, the script needs the user to drag at least 51% of the .current slide. Is there any way to decrease that value or make the "drag-change slide" more sensible? Like, i drag and scroll only 100px of my handle and i pass to the other slide?

luigicarlini1988 avatar Apr 03 '15 10:04 luigicarlini1988

I have this problem too!

Sedmica avatar Apr 06 '15 18:04 Sedmica

You can make the slide change without sliding >50% if you release while moving at speed. It will be easier to achieve this effect if you increase the speed option.

Let me know if this works.

ovidiuch avatar May 09 '15 17:05 ovidiuch

Yeah, it works, but will be better ho have a "threshold" option (in px or %) to trigger "nextslide" when drag reaches this amount

antonellopasella avatar May 18 '15 10:05 antonellopasella

Have anyone been able to figure this one out? I've been looking at the code for a while but can't figure out how to change this. I should probably learn js.

rajala avatar Jul 09 '16 22:07 rajala

Anyone come up with a work around for implementing threshold?

christru avatar Mar 22 '17 09:03 christru

fyi for what its worth this fixed my issue. Setting inertia to 15 https://github.com/kaigth/dragdealer/blob/add-features/src/dragdealer.js

christru avatar Mar 22 '17 09:03 christru

I have this problem too! @christru it's not working!

amhoho avatar Jan 22 '20 01:01 amhoho