Open rico opened 4 years ago
I have the same issue. Links are working fine, but when they wrap an image they don't work anymore.
SOLVED! `img { pointer-events: none;
@media (hover: hover) {
pointer-events: auto;
}
}` this will prevent any click on the IMG, then on no-touch device you can re-assign the event with a media query. Tested on a few IOS emulator so far.. it work fine.
Facing a similar issue here with the router-link
wrapped with text
and image
. However it does work when disable the touchMove
in the config.
SOLVED! `img { pointer-events: none;
@media (hover: hover) { pointer-events: auto; }
}` this will prevent any click on the IMG, then on no-touch device you can re-assign the event with a media query. Tested on a few IOS emulator so far.. it work fine.
Yeah this solution works fine in iOS & Pixel Chrome browser. But for some reason it's not working in Samsung and other android chrome :(
I'm not sure if this is related to https://github.com/kenwheeler/slick/issues/1015.
I have carousel with the following markup for the slides:
Clicking on the
<h2>
does trigger the click event, but clicking on the<img>
does not.Any idea why this happens or what I can do?