Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommended way to enable touch events in Bootstrap 3?

Now that Bootstrap 3 is out, what is the recommended option for enabling touch? As before, there aren't many touch events in the bootstrap.js, though it is supposed to be a mobile first framework.

The last thing I've found on github suggests using fastclick.js, but that was before the v3.0 release.

like image 828
conradj Avatar asked Oct 23 '13 08:10

conradj


People also ask

Which event fires immediately when the show instance method is called?

Event Type. Description. show.bs.dropdown. This event fires immediately when the show instance method is called.

What is a touch event?

Touch events are those events that are triggered when viewing the page on a mobile device, like a smartphone or a tablet. They allow you to track multitouch events.

What is touch event in jQuery mobile?

Touch events are nothing but the actions that are performed when user touches the screen. Following events list are some of the touch events which are supported by the jQuery Mobile: Tap event - Fires when user tap on an element. Taphold event - Fires when user tap on an element and hold for couple of seconds.


2 Answers

My recommendation is to use Bootstrap alongside JQuery mobile, TouchSwipe, or Hammer.js . An example of a bootstrap touch carousel can be found here.

like image 97
theannouncer Avatar answered Nov 01 '22 17:11

theannouncer


Start working on another fully working Touch Carousel on GitHub. This also includes drag events...

like image 32
ixisio Avatar answered Nov 01 '22 17:11

ixisio