swipe of touchSlider plugin not working properly on mobile chrome
I am using touchSlider plugin
the slider swipes perfectly on ios, but VERY bad on devices supporting chrome. Yet it is working perfectly when I decrease the width of my desktop chrome browser! I have no idea why it's happening.
HTML of my slider:
- <div class="gallery-holder centered">
- <div class="gallery" id="gallery2">
- <div class="holder">
- <div class="list">
- <div class="item">
- <div class="pro ibox">
- first box
- </div>
- </div>
- <div class="item">
- <div class="pro ibox">
- second box
- </div>
- </div>
- <div class="item">
- <div class="pro ibox">
- third box
- </div>
- </div>
- </br class="clear">
- </div>
- </div>
- <div id="tabs2"></div>
- </div>
- </div>
JS:
- $('#gallery2').touchSlider({
- mode: 'index',
- center: true,
- single: true,
- onChange: function(prev, curr) {
- $('#tabs2 a.tablink').removeClass('active');
- $('#tabs2 a.tablink').filter(function(i){return i == curr}).addClass('active');
- },
- onStart: function() {
- var count = $('#gallery2').get(0).getCount();
- $('#tabs2').html('');
- for (var i = 0; i < count; i++) {
- var el = $('<a href="#" class="tablink">'+(i+1)+'</a>');
- el.attr('index', i);
-
- $('#tabs2').append(el);
-
- el.bind('click', function(){
- $('#gallery2').get(0).moveTo($(this).attr('index'));
- return false;
- });
- }
- }
- });
So why is it not working on chrome?? Thanks