Code Monkey home page Code Monkey logo

Comments (14)

olavk avatar olavk commented on June 26, 2024 1

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.

ixisio avatar ixisio commented on June 26, 2024

which links do you mean? Indicators?

from bootstrap-touch-carousel.

petewilcock avatar petewilcock commented on June 26, 2024

Sorry, the html was removed. In img tags that are enclosed in a links.

from bootstrap-touch-carousel.

ixisio avatar ixisio commented on June 26, 2024

hey @MonkeyMatrix
can you explain it in more detail please!

from bootstrap-touch-carousel.

 avatar commented on June 26, 2024

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.

ixisio avatar ixisio commented on June 26, 2024

@LarsDR @olavk what would you propose?

from bootstrap-touch-carousel.

 avatar commented on June 26, 2024

@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.

ixisio avatar ixisio commented on June 26, 2024

@LarsDR yeah, thats exactly what we need. I will dig into the "How" soon as possible..

from bootstrap-touch-carousel.

 avatar commented on June 26, 2024

hehe, I wish I could help you with that part, @ixisio !

from bootstrap-touch-carousel.

ixisio avatar ixisio commented on June 26, 2024

@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.

 avatar commented on June 26, 2024

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.

ixisio avatar ixisio commented on June 26, 2024

sounds great, thank you!

from bootstrap-touch-carousel.

adamn676 avatar adamn676 commented on June 26, 2024

Any solution to this problem yet?

from bootstrap-touch-carousel.

ixisio avatar ixisio commented on June 26, 2024

@LarsDR any progress made?

from bootstrap-touch-carousel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.