question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple dots selected if mixing slide and touch (click)

See original GitHub issue

short description of the bug / issue, provide more detail below.

The problem could be reproduced on the demo page http://kenwheeler.github.io/slick/ with any touch device. E.g. on “single item”

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

[ paste your jsfiddle link here ]

not needed - error on demo page reproducible: http://kenwheeler.github.io/slick/

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

Steps to reproduce the problem

  1. surf to http://kenwheeler.github.io/slick/ on any touch device
  2. click (touch) the 3rd dot on “single item” slider -> “3” is displayed and 3rd dot is marked
  3. slide back (using slide gesture) to “2”

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

What is the expected behaviour?

only the 2nd dot should be marked after sliding to “2”

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

What is observed behaviour?

“2” is displayed but 2nd and 3rd dot are marked

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

More Details

  • reproducible on any touch device

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

6reactions
efigarolamcommented, Jul 14, 2017

@mattcdowning this issue is related with focus handling. Looks like focus is not removed on swipe. I manage to get a CSS fix for this issue:

    .slick-dots li button:focus:before {
        opacity: 0.25;
    }
    
    .slick-dots li.slick-active button:focus:before {
        opacity: .75;
        color: #000;
    }

Not sure why they add style based on focus when the .slick-active should handle the styling for an active dot.

0reactions
GitFlipcommented, Jul 18, 2018

@bracketslash Sorry haven’t looked into this anymore since @efigarolam’s fix worked for us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you create an Android View Pager with a dots ...
All we need are: ViewPager, TabLayout and 2 drawables for selected and default dots. Firstly, we have to add TabLayout to our screen...
Read more >
Toggles - Human Interface Guidelines
A toggle lets people choose between a pair of opposing states, like on and off, using a different appearance to indicate each state....
Read more >
Change text alignment, indentation, and spacing in ...
To change the horizontal placement of text, in the Alignment box, choose Left, Center, Right, Justified, or Distributed. Justified adds spacing between words...
Read more >
Top 20 PowerPoint tips and tricks - YouTube
A step-by-step tutorial on my top 20 Microsoft PowerPoint tips and tricks for 2021. The PPT Tips and tricks are the latest and...
Read more >
Figma Project: Build a Navigation Menu with Components
Figma is free to use. Sign up here: http://bit.ly/2KaMEjBIn this video, we'll show you how to build a website navigation bar with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found