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

Scroll drift in Chrome when zoomed in #104

Open
dfreeman opened this issue Feb 22, 2016 · 3 comments
Open

Scroll drift in Chrome when zoomed in #104

dfreeman opened this issue Feb 22, 2016 · 3 comments

Comments

@dfreeman
Copy link

A fun one! Thanks to this Chromium bug, in combination with these parseInts, you can end up in a situation where ember-collection slowly scrolls upwards with no user input.

To reproduce, take a look at the scroll position demo in Chrome, zoom in to 110%, and scroll down a bit.

If you land on anything other than a nice round number, you'll end up in a feedback loop between the parseInt truncation in the addon code and the rounding glitch in the browser that inexorably drags you back to the top of the collection.

@drourke
Copy link

drourke commented Mar 10, 2016

Any updates on this? Seems like the fix is to remove the parseInts..

@raytiley
Copy link
Contributor

The problem with removing the parseInts is right now I think that would break the layouts since layout-bin-packer doesn't deal w/ floating point numbers... but I guess it could. This needs more investigation.

@candunaj
Copy link

This problem still happen in Microsoft Edge browser when page is zoomed in or zoomed out. Is there any plan to fix it?

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

No branches or pull requests

4 participants