Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change slide dragging less than half page #77

Open
luigicarlini1988 opened this issue Apr 3, 2015 · 7 comments
Open

Change slide dragging less than half page #77

luigicarlini1988 opened this issue Apr 3, 2015 · 7 comments
Labels

Comments

@luigicarlini1988
Copy link

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?

@Sedmica
Copy link

Sedmica commented Apr 6, 2015

I have this problem too!

@ovidiuch ovidiuch added the idea label May 9, 2015
@ovidiuch
Copy link
Owner

ovidiuch commented May 9, 2015

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.

@antonellopasella
Copy link

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

@rajala
Copy link

rajala commented Jul 9, 2016

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.

@christru
Copy link

Anyone come up with a work around for implementing threshold?

@christru
Copy link

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

@amhoho
Copy link

amhoho commented Jan 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants