bootstrap-touch-carousel icon indicating copy to clipboard operation
bootstrap-touch-carousel copied to clipboard

Bug: Touch-ability only starts on prev/next button click

Open grijos opened this issue 10 years ago • 9 comments

On the demo page slider buttons disappear after a short moment. But that's not happening for me. Although it starts after clicking once on next or prev buttons. Is there a function to call to force-start touch UI (with no next/prev buttons)? If not, please add it.

I did try with $('.left').click(); with no luck.

grijos avatar Sep 11 '14 21:09 grijos

he @grijos,

Nope, there is no function to push force the UI. It gets immediately invoked. Could you please add some information about you environment.

Running Browser: Browser Version: OS:

That would be helpful! Thanks.

ixisio avatar Oct 02 '14 21:10 ixisio

I have the same problem with Android 4.2.2 and Chrome 38.0.2125.102

ville6000 avatar Oct 20 '14 11:10 ville6000

Hi @ixisio, I'm running Chrome 38.0.2125.104 / on OS X Yosemite 10.10. Thanks

grijos avatar Oct 21 '14 16:10 grijos

I was also having this issue, calling the code below in a document.ready function resolved it and activate the touch-ability before a click.

$('.carousel').carousel()

skirtley avatar Nov 05 '14 19:11 skirtley

I'm having the same problem. If I run $('.carousel').carousel() I get the touch interface but even on devices that don't have touch which is not what I want...

jamesrskinner avatar Nov 27 '14 21:11 jamesrskinner

Somehow the classes will not be added on mobile sizes. Desktop size does not matter but on mobile is it required. I could not fix it too :(

If you touch the indicator than the classes are added

semaf avatar Jan 04 '15 15:01 semaf

I was having the same problem. In my case I was generating the carousel dynamically so I had to call $('.carousel').carousel(); after the DOM nodes were ready so the events could be properly attached. Keep it in mind!

luiz-brandao avatar Jan 14 '15 07:01 luiz-brandao

I have been able to reproduce the problem.

It works on BS 3.0.0 (version used in the demo) but it doesn't work with BS 3.3.4 (last version atm).

Forcing this script : $('.carousel').carousel(); after loading, made it work on 3.3.4.

nicomollet avatar May 29 '15 09:05 nicomollet

@nicomollet Thanks Sir for testing the frwk w/ the current version of Bootstrap. Can you make a PR with your fix for 3.3.x?

ixisio avatar May 29 '15 11:05 ixisio