Slick: Diagonal swipe issue at mobile

Created on 6 Jan 2018  路  6Comments  路  Source: kenwheeler/slick

Description

If the swipe is slightly diagonal the carousel don't slide.

====================================================================

http://jsfiddle.net/fmo50w7n/1718/

You can test using this example

====================================================================

Steps to reproduce the problem

  1. using your mobile device try to slide the items doing a slightly diagonal swipe.

====================================================================

What is the expected behaviour?

The expected behaviour is to slide the carousel if the swipe is more horizontal (or vertical, depends on the settings) than vertical.

====================================================================

What is observed behaviour?

If the swipe is slightly in a diagonal direction the carousel don't slide it

====================================================================

More Details

  • Can be tested on desktop chrome mobile view too;
  • Tested on Android(chrome) and IOS(safari and chrome). same issue, but more notable on Android.

Thanks

Most helpful comment

I tested it with the 1.6.0 version and it works perfectly even with the full diagonal swipe. PERFECT.
@dianasotirova try to downgrade it.

All 6 comments

I don't think it's an issue for now. Swiping should be either horizontal or vertical. Diagonal won't work.

Hi,

I am experiencing the same issue. It's too much to expect from the users to make straight horizontal line in order to swipe a slide. The problem is that slick assumes if the direction is slightly different from the slick direction the user is scrolling. You could increase the length for the vertical swipe check (now it is 4) or you could add a setting for this. Furthermore, my page is smaller than the screen so there are no scrollers on the document and scroll is not possible. You could add a check if scroller is present or at least add a setting.

@kenwheeler, I will appreciate if you think about adding settings at least.

Thanks

I tested it with the 1.6.0 version and it works perfectly even with the full diagonal swipe. PERFECT.
@dianasotirova try to downgrade it.

@intransitorio Thanks for suggesting the version 1.6.0 (earlier using 1.8.0, facing problem with horizontal swipe, multiple times doing swipe for triggering swipe). Yes, It's working If you want to consider inclined or declined swipe as horizontal swipe. Coz its very difficult for users to swipe accurate horizontal in straight line sometimes.

Yes, the 1.8.0 in android is not working if you swipe diagonal, but version 1.6.0 is ok!!!. 1.6.0 es better!.

@ahmadalfy can we reopen this? 1.6.0 is dramatically better on mobile, swipes don't work half the time on mobile in 1.9.0.

Was this page helpful?
0 / 5 - 0 ratings