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

Layout change firefox #9

Open
pkpowell opened this issue Apr 23, 2021 · 3 comments
Open

Layout change firefox #9

pkpowell opened this issue Apr 23, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@pkpowell
Copy link

Firefox seems to lose the snapped element after a layout change (eg resize or orientation). This is visible in the demo if one selects the 2nd, 3rd... element and resizes the page. This doesn't happen with chrome, safari or edge.
Anyone know of a fix?

@angelomelonas angelomelonas added the bug Something isn't working label May 12, 2021
@angelomelonas
Copy link
Owner

This is likely due to some browser-specific CSS that is missing. Unfortunately, I don't currently have time to look into it.

@angelomelonas
Copy link
Owner

angelomelonas commented May 12, 2021

@pkpowell I have been able to reproduce this on Firefox. The steps are as follows:

  1. Select te Vertical scroll option
  2. Scroll to the second or third element
  3. Resize the browser windows (make it smaller)

The bug is then clearly visible:

image

It looks like Firefox is using absolute positioning to determine the location of the element (instead of it being relative to the container).

As I mentioned above, I don't currently have time to investigate this further. Anyone willing to look into this further is more than welcome though 😄

@OleksandrHrubyi
Copy link

Hello. I have a problem, I wrapped everything in view snap. and when I click on the link of another page in the footer, the scroll remains in place, and I need the scroll to be on the top section. how to solve it?:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants