Comments (14)
Yes i had the same problem. Fixed it with:
$('body').hammer().on("tap", ".touch-carousel a", function(event) {
window.location=$(this).attr('href');
});
This requires Hammer.js jQuery plugin.
However, this is not ideal, because our solution required the links to open in modal windows, so the javascript has to modified on a case-by-case basis.
from bootstrap-touch-carousel.
which links do you mean? Indicators?
from bootstrap-touch-carousel.
Sorry, the html was removed. In img tags that are enclosed in a links.
from bootstrap-touch-carousel.
hey @MonkeyMatrix
can you explain it in more detail please!
from bootstrap-touch-carousel.
I'm using Bootstrap Touch Carousel with AngularJS, and have some links and buttons in my slides.
From what I've experienced, the "drag/swipe"-events disable the "click/tap"-events on buttons/links. So I cannot click the links/buttons that're in my slides.
I could manually reattach event handlers with jQuery on (click/tap), which reenabled the functionality, but this is kind of a "hack".
My issue is that I'm using ngClick on my buttons to handle the clicks, and the ngClick callback never gets called. I said previously, I can manually attach to the click/tap-events using jQuery, and then call the callbacks manually / redirect the user (like @olavk )
from bootstrap-touch-carousel.
@LarsDR @olavk what would you propose?
from bootstrap-touch-carousel.
@ixisio Not sure, but I would think that the "dragging" should be disabled on "native clickable elements", or not interfer with links/buttons.
from bootstrap-touch-carousel.
@LarsDR yeah, thats exactly what we need. I will dig into the "How" soon as possible..
from bootstrap-touch-carousel.
hehe, I wish I could help you with that part, @ixisio !
from bootstrap-touch-carousel.
@LarsDR would appreciate your assistance!
Is this just a nexus 4 issue? on iOS, buttons inside carousel working perfectly for me..!?
from bootstrap-touch-carousel.
I was testing on a Samsung Galaxy S5 and iPhone 5s running iOS 7 (latest version).
The ngClick-button worked on iOS, but only when clicking twice. The android device didnt work at all. From what I reckon, the regular link-button didnt work at all, on either device.
I'll try to set up a test project with as little code as possible, replicating the error, one of these days.
from bootstrap-touch-carousel.
sounds great, thank you!
from bootstrap-touch-carousel.
Any solution to this problem yet?
from bootstrap-touch-carousel.
@LarsDR any progress made?
from bootstrap-touch-carousel.
Related Issues (20)
- FR: Endless Loops (wrap)
- FR: Hammer.js custom build (use only whats required) HOT 1
- Better unit test coverage
- How to get it to cycle back to slide #1 after the last slide? HOT 2
- Carousel with requirejs. Hammer is not defined HOT 5
- Scrolling vertically on page stops when getting to carousel HOT 8
- Bug: Touch-ability only starts on prev/next button click HOT 9
- Image not responsive on auto rotate HOT 3
- Carousel doesn't loop wrap issue HOT 4
- gruntfile build process missing un-uglified version HOT 1
- Auto Scroll with Touch Issue HOT 1
- Can't swipe away from a video if one is included in the carousel. HOT 5
- Visual Studio bower is grabbing bootstrap-touch-carousel v0.7.1
- Did I miss something? Isn't 'touch-carousel' class required? HOT 1
- Support for D&D on Desktop Browsers?
- Responsive behavior involving image and a text, that the text will end up completely under the image
- Remove touch carousel implementation from carousel
- Touch functionality does not work in Microsoft Edge HOT 2
- Any chance of SASS Support?
- FR: Touch Swipe in Carousel Bootstrap 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-touch-carousel.