Bootstrap big picture Carousel mobile phone end cannot finger swipe solution

Source: Internet
Author: User

Online to see a lot of solutions, almost the essence is the same, are introduced a sliding JS plugin, add a section of JS code, can be effective, but I tried hammer.js and touchswipe.js are not effective, can not find the reason is what, at present on the Internet to find toucher.js can be achieved, posted to the blog, reserved for backup:

 1 <script>  2     $ ( function () {  3         var mytouch =  Util.toucher (document.getElementById (' Carousel-index '));  4          mytouch.on (' Swipeleft ', function (e) {  5              $ ('. Right '). Click ();  6          }). On (' Swiperight ', function (e) {  7              $ ('. Left '). Click ();  8          });   9     })  10 </script> 


Gets the ID that is the outermost ID of the entire large chart carousel,

$ ('. Right '), $ ('. Left ') for the class name of the right-click arrow, such as Carousel does not need left and right arrows, to add display:none arrows; We can.


Reference Link: http://blog.csdn.net/wmwyyx/article/details/46608893

This article is from the "Small Syria frontend" blog, please be sure to keep this source http://beileixinqing.blog.51cto.com/7540036/1905169

Bootstrap big picture Carousel mobile phone end cannot finger swipe solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.