'Turn off Woocommerce touch slider(Flexslider.js) in single product gallery
I am trying to turn of flexslider touch function on my Woocommerce single product page. I've been trying to figure out what calls the function to make the gallery slider draggable on mobile and I have found it.
I navigated to Plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js where I changed touch:!0 to touch:!1(It's minified version of js so I changed true to false). This turns off the touch slider on mobile devices but it also returns an error in my console.
Error
[Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
Does anyone have an idea how to turn off flexslider touch functionality on mobile devices on Woocommerce single product page?
Cheers
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
