I created a slideshow which works perfectly on desktop but on('click')
doesn't work in the mobile version. However, the click works fine for other mobile buttons.
html
<section id="interests" class="container content-section text-center">
<div class="row">
<div class="col-md-12">
<h2><span class="en">Interests</span><span class="es">Intereses</span></h2>
<style id="sliderLanguage"> </style>
<div class="row">
<div class="col-md-6 col-xs-12">
<div id="sliderBubble">
<img class = "bubbles currentBubble" src="img/sBubblePink.png">
<img class = "bubbles" src="img/sBubble.png">
<img class = "bubbles" src="img/sBubble.png">
<img class = "bubbles" src="img/sBubble.png">
<img class = "bubbles" src="img/sBubble.png">
<img class = "bubbles" src="img/sBubble.png">
</div>
</div>
</div>
</div>
</div>
</section>
script.js
for (var i = 0; i < numClips; i++) {
$($bubbles[i]).on('click', function () {
alert('test')
});
}
UPDATE It's the bootstrap css. If I don't include the boostrap the click works fine on mobile, but I don't know what part of the css is causing it to fail.
UPDATE 2 its specifically the grid system within Boostrap. I was playing around with customizing the boostrap download and I can use every single component except for the grid system which breaks the slideshow.