web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

codepen.io - Unable to use "UP/Down" arrow keyboard keys after reaching last slide

Open joekingTheThird3 opened this issue 3 years ago • 5 comments

URL: https://codepen.io/joeKingtheThird/pen/QWmxvxX

Browser / Version: Firefox 103.0 Operating System: Windows 7 Tested Another Browser: Yes Chrome

Problem type: Site is not usable Description: Buttons or links not working Steps to Reproduce: The last item (.slide2) with counter text 8 in left hand top corner doesn't seem to go to the top position. I have position:sticky and top:0px on each slide. The first few act correctly but the last one seems to not go to the top of the div.slide-container2 scroll container. In firefox I can arrow down with the keyboard but if after going to the last item, I cannot seem to arrow backup or arrowing backup seems to get stuck going from 7 to 6. This is a bit flaky and hard to test. The scroll mouse on firefox seems to scroll back up but also gets stuck from 7 to 6. In chrome browser this keyboard and mouse scrolling seems to be okay. But in chrome it still shows the last item not at the top of the div scroll container at position 0px.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

joekingTheThird3 avatar Aug 08 '22 10:08 joekingTheThird3

Thanks for the report, but I get the same behavior both on Firefox and Chrome. Slide 8 does not fully overlap slide 7. image

Tested with: Browser / Version: Firefox Nightly 105.0a1 (2022-08-08), Firefox Release 103.0.1, Chrome 104.0.5112.81 Operating System: Windows 10 Pro

@joekingTheThird3 do you get a different behavior on Chrome?

[qa_32/2022]

softvision-oana-arbuzov avatar Aug 09 '22 14:08 softvision-oana-arbuzov

Same overlap on both browsers. Firefox seems to get stuck with keyboard up arrow, when I go from last to previous slides.

joekingTheThird3 avatar Aug 09 '22 16:08 joekingTheThird3

Ok I got it now, after using "Down" arrow keyboard key to reach the last slide, "Up/Down" arrow keys are no longer usable on Firefox. This does not happen on Chrome, where the arrow keys continue to function at all times.

Moving to Needsdiagnosis for further investigation.

[inv_32/2022]

softvision-oana-arbuzov avatar Aug 10 '22 11:08 softvision-oana-arbuzov

It seems to be position:sticky, top:0 in combination with the scrollsnap that causes the firefox issues.

joekingTheThird3 avatar Aug 13 '22 08:08 joekingTheThird3

scroll-snap-firefox-pos-top0-nowork-1R1

scrolling backup in firefox gets stuck on 6th item. Trying to vary the number of items causes more complex situations. i.e. the keyboard or scroll wheel going in reverse gets stuck on different items.

joekingTheThird3 avatar Aug 15 '22 08:08 joekingTheThird3

Seems like this bug is related to this 3yr old bug https://bugzilla.mozilla.org/show_bug.cgi?id=1594386

Firefox fix - apply position sticky to slides and scroll-snap-align to other div - codepen test https://codepen.io/joeKingtheThird/pen/PoezQOR

joekingTheThird3 avatar Sep 07 '22 07:09 joekingTheThird3