Shop Slider Un-Usable on Mobile
The Shop Slider is great, it shows off the products nicely and is responsive.
HOWEVER there is a serious problem. On touch enabled devices, the tap event does not open any of the links within the carousel.
THIS HAPPENS EVEN IN YOUR LIVE SHOP THEME PREVIEW. So no need for me to send you a link to see the problem in action.
Click works file on desktop, and resizing the browser window to mobile dimensions there is no change. But access the page on a touch screen device, and none of the links open when tapped. The overlay element with link icon will show and hide, but the link will not open. The user can long-tap to open a context menu and open the link in a new window, but this is not acceptable.
Any chance of a quickfix to this before a new release of the theme is put together? I see there is a touch event that handles the toggle:
ontouchstart="this.classList.toggle('hover');"
Is there any way to hijack this event to trigger a click on the link within this div? I tried ontouchstart="this.find(\'a\').click();" and ontouchstart="this.find(\'a\').trigger(\'click\');" but this doesn't work.
ontouchstart="this.classList.toggle('hover');"
Is there any way to hijack this event to trigger a click on the link within this div? I tried ontouchstart="this.find(\'a\').click();" and ontouchstart="this.find(\'a\').trigger(\'click\');" but this doesn't work.
Comments
$output .= '<a href="'. get_the_permalink() .'" ontouchstart="this.click();">';
BTW On ipads or other devices than iphone everything works fine. Only on iphone it does not work because of hover action on click and all hover actions on iphones must be removed. We`ll do it with next update.
Thanks for understanding!
Thanks for understanding!