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

Regression: Animate transition between app pages breaks links that jump or scroll to elements on another page #701

Open
Jaifroid opened this issue Feb 6, 2021 · 4 comments
Assignees
Labels
regression Broken things that used to work
Milestone

Comments

@Jaifroid
Copy link
Member

Jaifroid commented Feb 6, 2021

As per title. One workaround is to wait for the transition to complete (around 500 - 600ms), but this introduces a race and might not work on slow browsers or slow environments. The best solution would be to prevent the transition from interfering, or to make its methods aware of local anchors.

@Jaifroid Jaifroid added the regression Broken things that used to work label Feb 6, 2021
@Jaifroid Jaifroid added this to the v3.2 milestone Feb 6, 2021
@Jaifroid Jaifroid self-assigned this Feb 6, 2021
@mossroy mossroy modified the milestones: v3.2, v3.3 Aug 22, 2021
@Jaifroid
Copy link
Member Author

To be clear, this issue refers to links from one of the app's pages to another inside the app. It does not refer to jumping to sections within an article.

@Rishabhg71
Copy link
Collaborator

Rishabhg71 commented Sep 9, 2023

I am back after a small break and start working on this again. Here is what I think could work

PROPOSAL:

  • Add a global variable to manage if the animation is active or not (let animationActive = true/false)
  • We can disable the animations by default
  • cleanup the current animation code or maybe just replace it with something easy (optional if i find something easy to implement)

@Jaifroid
Copy link
Member Author

Jaifroid commented Sep 9, 2023

Global variables are attached to the params object and are set in init.js (now). There should already be one relating to this setting.

@Jaifroid
Copy link
Member Author

Changing params['showUIAnimations'] = getSetting('showUIAnimations') !== false; to === true; should change the default: it will always be false unless explicitly set to true in localStorage.

@Jaifroid Jaifroid modified the milestones: v3.11, v4.0 Nov 1, 2023
@Jaifroid Jaifroid modified the milestones: v4.0, v4.1 Feb 21, 2024
@Jaifroid Jaifroid removed this from the v4.1 milestone Jul 14, 2024
@Jaifroid Jaifroid added this to the v4.2 milestone Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Broken things that used to work
Projects
None yet
Development

No branches or pull requests

3 participants