Open Leftyx opened 9 years ago
and for enable scroll on this items change touchmove to below code(change return false; to return true;), exactly function that placed on top of function that @Leftyx mentioned
$slide.on('touchmove', function (e) { if (w < elSize) { if (w !== 0) { return true; } } var orig = e.originalEvent; endCoords = orig.targetTouches[0]; var xMovement = Math.abs(endCoords.pageX - startCoords.pageX); var yMovement = Math.abs(endCoords.pageY - startCoords.pageY); if (settings.vertical === true) { if ((yMovement 3) > xMovement) { e.preventDefault(); } $this.touchMove(endCoords.pageY, startCoords.pageY); } else { if ((xMovement 3) > yMovement) { e.preventDefault(); } $this.touchMove(endCoords.pageX, startCoords.pageX); } });
@Leftyx
Thank you so much
@Leftyx
I can't thank you enough for this one!
note to self: always google your issues before trying to fix them
I've use lightslider with images and links in each li element:
if lightslider does not contain enough images to fill the slider (arrows shown) the link href does not work. The problem is only present when using the slider on mobile device using a mobile browser like Opera.
I believe the problem sits in line 839:
changing the return value to true make things work as expected: