payalord / xZoom

jQuery Zoom Gallery plugin
https://payalord.github.io/xZoom/
Apache License 2.0
165 stars 65 forks source link

Examples: mouse over not working in Chrome and FireFox on Windows 10 #41

Closed poebrand closed 4 months ago

poebrand commented 6 years ago

On the examples... the mouse over behavior that opens zoom is not working in Chrome 65.0.3325.181 and FireFox 59.0.2 on Windows 10 desktop (multiple computers). It was working yesterday. I double-checked that it still occurs after clearing cache and opening in incognito mode.

URLs with issue:

Working in:

poebrand commented 6 years ago

Upon further investigation, Chrome and FireFox are passing the touch device check in setup.js. IE 11 is not. This appears to be the issue.

var isTouchSupported = 'ontouchstart' in window;

image

payalord commented 6 years ago

Thank you, for this analyze and help. Yeah this is how i checked does the touch gesture is supported or not. I think i better to change it to some kind of better or cross platform detection solution, maybe something like this: https://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript