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.

Scrollbar jump on previous/next slide click in Chrome

See original GitHub issue

Hi there,

First off, thanks for slick, and all your work on it. It’s really terrific, and I use it frequently.

After updating to 1.5.6, it seems that clicking either the “Previous” or “Next” buttons causes the scrollbar to jump in Chrome (43). Here is a codepen test using the current version, and here is a test using version 1.5.5. This does not appear to be an issue on either Firefox or Safari (I have not tested IE).

(Setting accessibility: false corrects this behavior, but that’s obviously not ideal. The work done on https://github.com/kenwheeler/slick/pull/1467 is super helpful, and I am all for making slick more accessible.)

My question is, is this the desired behavior? If it is, I’ll close the issue. If not, I’m happy to submit a PR, but I don’t want to interfere with the accessibility work that’s been done.

Thanks again.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
lebirucommented, Aug 6, 2015

+1 getting this too Google Chrome Version 44.0.2403.130 m

Mitigation

"accessibility": false
2reactions
leggomuhgreggocommented, Jul 15, 2015

Interesting. I’m pretty sure this is related to tab focus from #1467. It looks like when the slider height is larger than the window height, the browser jumps to the top of the focused element.

If you set accessibility to false (example) it wont do that, but that’s an unfortunate decision to have to make.

I’m pretty sure that the “focus jump” will only happen when a user clicks a nav element; I tested with auto play, and if I was scrolled way down the page, it wouldn’t jump when it scrolled. So, I guess I’m curious what the use case is for a slider that’s larger than the window height, where this would be an issue.

@msrafi @simeydotme what do you think? I was looking around to see if there’s a way to control the behavior, but the options I’m seeing don’t look very smooth.

Thanks!

EDIT: Zoiks, I didn’t read the first initial issue very closely–said everything I just did sorry for the redundancy :p

Read more comments on GitHub >

github_iconTop Results From Across the Web

Click to jump on feature scrollbar not working? - Google Support
1) Type "chrome://flags/" into your address bar · 2) Type "scrollbar" into the search bar that comes up · 3) for "Compositor threaded...
Read more >
How to Prevent Scrollbar Jumping in Chrome Browser
How to Prevent Scrollbar Jumping in Chrome Browser ; 1.Launch Chrome. ; 2. Navigate to chrome://flags/#enable-scroll-anchoring ; 3. Set Scroll ...
Read more >
Fix Automatic Page Scroll Jumping on Chrome for ... - Gtricks
Chrome will now automatically adjust the scroll position in order to prevent “visible jumps when offscreen content changes”.
Read more >
How To Hide Scrollbars With CSS - W3Schools
How To Hide Scrollbars. Add overflow: hidden; to hide both the horizontal and vertical scrollbar. ... Hide scrollbar for Chrome, Safari and Opera...
Read more >
Get browser current scroll bar position
Hi! I would like to find the current position of a Chrome Browser's scroll bar (the one on the right) to then utilise...
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