Home › Forums › Support › Possible conflict with Visual Composer › Reply To: Possible conflict with Visual Composer
October 15, 2015 at 3:46 pm
#144718
Tom
Lead Developer
Lead Developer
This is definitely a head scratcher.. I may have something to do with us using the :active or :focus CSS selectors, but if that’s the case, that’s something VC would have to look into, as those are just default CSS selectors and they work when not in the VC rows.
Another possible solution is to do something like this:
<script>
var device = navigator.userAgent.toLowerCase();
var ios = device.match(/(iphone|ipod|ipad)/);
if ( ios ) {
$('.vc_row a')
.live('touchstart', function(){
isScrolling = false;
})
.live('touchmove', function(e){
isScrolling = true;
})
.live('touchend', function(e){
if( !isScrolling )
{
window.location = $(this).attr('href');
}
});
}
</script>