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

✨ [Story Preview] Handle page advancement logic when transitioning from the preview state to visible #1

Closed

Conversation

coreymasanto
Copy link
Owner

@coreymasanto coreymasanto commented May 16, 2022

This PR causes the story page to do the following:

  1. Re-initialize this.advancement_ when moving from the preview state to visible. The advancement in preview mode is a time-based one whereas it should not necessarily be time-based in visible mode

  2. The new setupAutoAdvanceForVisible_() function is used to help restore the page's advancement to its default, non-preview behavior expected

  3. The new handlePreviewToVisibleTransition_() function is designed to ensure that the progress bar accurately reflects the page's progress in visible mode, specifically after transitioning out of preview mode.

@coreymasanto coreymasanto self-assigned this May 16, 2022
@coreymasanto coreymasanto changed the title Initial logic; includes page advancement initialization in response t… [Story Preview] Handle page advancement logic when transitioning from the preview state to visible May 19, 2022
@coreymasanto coreymasanto changed the title [Story Preview] Handle page advancement logic when transitioning from the preview state to visible ✨ [Story Preview] Handle page advancement logic when transitioning from the preview state to visible May 19, 2022
@coreymasanto coreymasanto marked this pull request as ready for review May 19, 2022 11:31
@coreymasanto coreymasanto marked this pull request as draft May 19, 2022 11:32
@coreymasanto coreymasanto removed their assignment May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant