Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kiosk: Fix for clean=1 param #9762

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Conversation

eanders-ms
Copy link
Contributor

More fun with Swiper idiosyncrasies. When Swiper's loop option is enabled, it will duplicate slides until there are three, but it won't distinguish between them when rendering, so you won't know which is actually selected. Transitioning between these duplicated slides doesn't reliably trigger a React re-render. I had to work around this behavior to get the carousel rendering correctly when there were less than three games uploaded and clean=1. @srietkerk this probably sounds familiar to you! :)

Fixes microsoft/pxt-arcade#6169
Fixes microsoft/pxt-arcade#6136, incidentally

@eanders-ms eanders-ms requested review from srietkerk and a team October 30, 2023 22:09
Copy link
Contributor

@kimprice kimprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eanders-ms eanders-ms merged commit 3cac786 into master Oct 30, 2023
7 checks passed
@eanders-ms eanders-ms deleted the eanders-ms/kiosk-clean-param branch October 30, 2023 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants