Resize your browser to be smaller (1/2 of the size works best for visually seeing this bug)
Scroll any games carousel to the right
Make your browser full screen (back to its original size)
Scroll left on any games carousel
Expected Behavior
You expect the games carousel to not allow you to infinitely scroll to the left, and to always show a full carousel of games.
Actual Behavior
You are now able to infinitely scroll to the left with a certain offset.
It basically sets the style of div class=“horizontally-scrollable” to be style=“left: XXXpx”, but because you scroll to the right using a smaller amount of total pixels based on browser size, and then scroll to the left using a larger amount of total pixels based on browser size, it allows style=“left: XXXpx” to become positive when it should stop at 0.
An easy fix to this is to use a max function to ensure the style cannot have left become positive using MAX[0, desiredLeftPixelOffset] where desiredLeftPixelOffset is the offset you want after going left.
I can reproduce this.
Browser: Brave Browser (Chromium 91.0.4472.77)
Sorry for taking a while to upload this, my internet is abysmal right now and the devforum was not letting my upload the video directly so I uploaded it to youtube.
I successfully reproduced the bug. Thanks for the report, I have filed a ticket to our internal database. I’ll reply when there are updates regarding the issue. Thanks again for the report.