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

Touch Swipe Support Needed #42

Open
zlanich opened this issue Jun 24, 2014 · 21 comments
Open

Touch Swipe Support Needed #42

zlanich opened this issue Jun 24, 2014 · 21 comments
Assignees
Milestone

Comments

@zlanich
Copy link

zlanich commented Jun 24, 2014

This has been brought up once before, but the issue was closed without solving it. Flexslider has a great example of hardware-accelerated Touch Swipe capability, but I'd prefer to use Slippry as Flexslider seems to have a few lingering bugs and isn't nearly as configurable. Any chance anyone is looking into this? I feel like it's kind of an overdue feature. I'd try to implement it myself, but I don't have much expertise in hardware-acceleration on web just yet.

@sftsk sftsk self-assigned this Jun 25, 2014
@sftsk
Copy link
Member

sftsk commented Jun 25, 2014

Hello, due to everybody asking for this feature we will implement it :) At the moment we are very busy though, so I can not promise when that will happen!
Because if we do it, we want to do it right!

@sftsk sftsk added this to the 2.0 milestone Jun 25, 2014
@epiblue
Copy link

epiblue commented Oct 7, 2014

When are you planing to add the touch support ? :)

@sftsk
Copy link
Member

sftsk commented Oct 8, 2014

can't promise anything but we would like to have slippry v2 before the end of the year :)

@epiblue
Copy link

epiblue commented Oct 10, 2014

Thanks

@sftsk sftsk modified the milestone: 2.0 Nov 26, 2014
@josh256
Copy link

josh256 commented Dec 1, 2014

+1 would be great!

@JordanSayner
Copy link

Is this still being added. Like zlanich said, Id like to use this over flexslider, but i need touch support.

@sftsk
Copy link
Member

sftsk commented May 17, 2015

This is still being added, we have just restructured the build process for Slippry and soon we want to get into proper development of the long overdue version 2.0
Sorry we are taking our sweet time for this but we really want to nail this and not have a half-arsed implementation.

@camilosanchez
Copy link

👍 +1

@ashep
Copy link

ashep commented Aug 15, 2015

+1

@ghost
Copy link

ghost commented Sep 28, 2015

update please? when can we expect 2.0 ?

@drewbaker
Copy link

Couldn't users just bind a touch/swipe event to click on the next/prev buttons, or fire the goToNextSlide() events? I don't think you guys need to build that sort of high-level stuff.

@sftsk
Copy link
Member

sftsk commented Oct 14, 2015

Yes @drewbaker, that was our inital idea: #28
Due to the growing demand we have decided to have this built in.

@steri-rex
Copy link

hi, anyone who included successfully a touch swipe plugin like this one https://github.com/mattbryson/TouchSwipe-Jquery-Plugin? it would be great to have touch support.

@ghost
Copy link

ghost commented Sep 3, 2016

Don't know if people are still having an issue with this, but I have just put a basic example here of slippry and touchswipe working together: https://github.com/paranoidantroid/slipprytouchswipe

Only tested on my android phone and on browserstack so if you have issues please let me know.

@Shinrai
Copy link

Shinrai commented Jan 5, 2017

When paired with TouchSwipe-Jquery-Plugin the below bit of code will give it swipe left and swipe right touch support:
jQuery(document).ready(function(){ jQuery('.slipSlide').each(function() { jQuery(this).data('slippry',jQuery(this).slippry()); }); jQuery('.slipSlide').swipe({ swipeLeft:function(event, distance, duration, fingerCount, fingerData, currentDirection) { var lSlippry = jQuery(this).data('slippry'); lSlippry.goToNextSlide(); }, swipeRight:function(event, distance, duration, fingerCount, fingerData, currentDirection) { var lSlippry = jQuery(this).data('slippry'); lSlippry.goToPrevSlide(); }, }); });

@stylefabrik
Copy link

I couldn't get it to work with TouchSwipe-Jquery-Plugin and the Code from Shinrai.
Is this feature still in on the Roadmap/will be realesed anytime "soon"? Cause this question is allready 2 Years old :D

@sftsk
Copy link
Member

sftsk commented Jun 7, 2017

It still is but time has been sparse :(
I hope to get Slippry back on track this summer!

@achleitner
Copy link

Any updates?

@jennywlove
Copy link

jennywlove commented Feb 17, 2019

@stylefabrik I was able to get TouchSwipe working with the plugin and the following code:

var slippry = jQuery('.slippry').slippry({..});  
jQuery('.slide').swipe({
  swipeLeft: function (event, distance, duration, fingerCount, fingerData, currentDirection) {
    slippry.goToNextSlide();
  },
  swipeRight: function (event, distance, duration, fingerCount, fingerData, currentDirection) {
    slippry.goToPrevSlide();
  },
});

@achleitner
Copy link

achleitner commented Feb 17, 2019

https://github.com/mattbryson/TouchSwipe-Jquery-Plugin

this works for me

$("#portfolio-demo").swipe( {
//Generic swipe handler for all directions
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
if (direction == "left") {
pdemo1.goToPrevSlide();
} else if (direction == "right") {
pdemo1.goToNextSlide();
}
},
//Default is 75px, set to 0 for demo so any distance triggers swipe
threshold:0
});

slippry set up like this:

var pdemo1 = $('#portfolio-demo').slippry({
slippryWrapper: '

', // wrapper to wrap everything, including pager

// options
adaptiveHeight: true, // height of the sliders adapts to current slide

loop: true, // first -> last & last -> first arrows
captionsSrc: 'li',
captions: 'custom', // Position: overlay, below, custom, false
captionsEl: '.external-captions-1',
pager: false,
hideOnEnd: false,
// transitions
transition: 'fade', // fade, horizontal, kenburns, false
easing: 'linear', // easing to use in the animation [(see... [jquery www])]
continuous: false,

// slideshow
auto: false
});

@jemoreto
Copy link

@stylefabrik I was able to get TouchSwipe working with the plugin and the following code:

var slippry = jQuery('.slippry').slippry({..});  
jQuery('.slide').swipe({
  swipeLeft: function (event, distance, duration, fingerCount, fingerData, currentDirection) {
    slippry.goToNextSlide();
  },
  swipeRight: function (event, distance, duration, fingerCount, fingerData, currentDirection) {
    slippry.goToPrevSlide();
  },
});

This worked for me. Thanks

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

No branches or pull requests