Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent vertical swipe while swiping horizontally #1786

Open
louisdoe opened this issue Oct 20, 2020 · 2 comments
Open

Prevent vertical swipe while swiping horizontally #1786

louisdoe opened this issue Oct 20, 2020 · 2 comments

Comments

@louisdoe
Copy link

louisdoe commented Oct 20, 2020

in WooCommerce, with my Storefront child theme, I have an issue with FlexSlider on iPhones (iOS): when swiping left or right the product-image carousel, there is some level of vertical movement, which I don't want.

You can see the bug in this video : https://youtu.be/bM8zcv3ciTo

I have the following code un my child theme's functions.php:

/*PRODUCT PAGE FlexSlider Options*/
add_filter( 'woocommerce_single_product_carousel_options', 'filter_single_product_carousel_options' );
function filter_single_product_carousel_options( $options ) {
    if ( wp_is_mobile() ) {
        $options['controlNav'] = true; // Option 'thumbnails' by default
        $options['direction'] = "horizontal";
        $options['slideshow'] = false; // Already "false" by default
    }
    return $options;
}

Any idea how to prevent this vertical rebound?

@louisdoe
Copy link
Author

louisdoe commented Nov 3, 2020

Hello
can someone help me here ? Thanks

@louisdoe
Copy link
Author

louisdoe commented Nov 5, 2020

I edited my question on SO: https://stackoverflow.com/questions/64169828/flexslider-on-woocommerces-product-page-prevent-vertical-swipe-while-swiping-h

Anyone else see this bug on iOS.? it's quite a big bug.

I am sure it's not plugin-related because I installed a test site with only WP and WooCommerce. The bug is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant