-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Initial Carousel Swipe Support #2640
Conversation
Very cool thanks. I looked at your demo URL and think that you have the swipe events backwards. When swiping left to right for instance, I expect it to reveal the next LEFT slide, like sliding cards. Look at how swipejs reacts on your touch phone: www.swipejs.com Apart from that, it would also be cool to show/hide buttons depending on touch availability or not. AHhhhh wait, wow yeah ok. I see your functions that you added. Very nice. Exactly what I was thinking. Feedback: iOS works fine. Latest Mobile Safari on iPhone 4s and iPad2. |
ah i see what you mean about events. patch coming soon ;) |
Awesome. Works perfectly now. Thank you Chris!! On Mar 17, 2012, at 4:12 PM, Chris Talkington [email protected] wrote:
|
no problem. i am looking into the ability to allow vertical page scrolling on the carousel now. think ive almost got it once I can prevent it from scrolling left and right when trying to swipe. |
Very cool Chris. It works great. As a matter of fact, it works better than the recent v2.0.2 release. There is now a bug where the images don't resize - they stay the same and overflow. Yours resize - I assume you are using the 2.01 release? I'm gonna revert back to that older version and use your new touch carousel tomorrow. |
hum i started from commit 8e0afbe so really not sure what would be different, to my knowledge its 2.0.2. basically just branched from that and then edited js and updated the docs js file and uploaded the docs folder. |
Hmmm ok. Yeah I am just seeing the same issues other are seeing with images not resizing. Something is out of sync. Could be my brain. It's getting late. :D From: Chris Talkington [email protected] hum i started from commit 8e0afbe so really not sure what would be different, to my knowledge its 2.0.2. basically just branched from that and then edited js and updated the docs js file and uploaded the docs folder. Reply to this email directly or view it on GitHub: |
Wow great. Vertical scroll works great using your simplydev demo page on iOS. Nice job and fast ! I have two questions for ya:
Thanks Chris. You are a rockstar. This is fast work. And it works well !! :D |
|
Hmmmm ok cool. Thanks for the reply. I was hoping that they had events that I could look at like the tabs do.
|
hum, there is a |
Yeah I have used that, but can't get it to tell me what slide I am on. I was thinking of hackish ways to upon slid, look for the DIV with classname=active , but that feels like hack-city to me. Do you recommend I go down that road? Your kungfu is better than mine. :D |
@ibrent bit busy on some paid projects but I will see about tweaking up the js a bit to support feeding back current slides since it should know them at that point but not giving them back. would you make an issue about slid not passing current slide id that I can refer to? |
while this is super cool, not something we're going to move into core just yet. Might make sense to get a bootstrap-touch repo going at some point - something similar to http://www.jqtouch.com/ |
bit disappointed as this change could help a lot of people from having to use other bloated carousels just for basic swipe support when carousel is lightweight and works well minus swipe support. I mean the code was pretty self contained and I don't see any harm in having it in core. that said would you be open to having the logic as say |
I'm wondering if anyone has tried this with bootstrap 2.1.1? |
Hi Chris - Thanks for the work, just awesome! cycle: function () { if(this.options.interval != false) { this.interval = setInterval($.proxy(this.next, this), this.options.interval); } return this } |
drop in replacement for twbs carousel to enable gestures on touch devices: have fun, |
Think I will start something like this, and Carousel is the first component (https://github.com/ixisio/bootstrap-touch-carousel). Cool idea! |
I have made the needed changes to enable basic swiping on mobile devices. This should be a start for the feature requested in #2468. Hopefully with a little testing this can become a staple feature.
Functionality:
Tested on:
I am hosting a demo site to make it easier to test: bootstrap.simplydev.com
Code inspired and adapted from:
http://wowmotty.blogspot.com/2011/10/adding-swipe-support.html