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

swipeview progressively more offset #76

Open
bjacobel opened this issue May 17, 2013 · 2 comments
Open

swipeview progressively more offset #76

bjacobel opened this issue May 17, 2013 · 2 comments

Comments

@bjacobel
Copy link

The longer you leave the homepage open, the more the swipeview container active tile gets incorrectly offset.

screen shot 2013-05-17 at 6 19 10 pm

@bjacobel
Copy link
Author

Okay, documenting some more on this so I don't forget what I was doing when I come back to this later: this is due to the swipeview-wrapper div being set to a percentage of the page width, which on some screens ends up with a fraction of a pixel. Swipeview can't deal with those pixel fraction and either rounds or floors them, I haven't quite figured out which yet. Over time, the error builds up.

There's a way to get the width of a div with sub-pixel accuracy, and I've tried to reimplement a method in Swipeview using that instead of allowing rounding/flooring. It stretches the swipeview page infinitesimally to get rid of the 0.25-0.75 pixel error, and that fixes the bug 100% in Firefox and Safari. In Chrome, though, it causes bizzarre stretching and blurring of the fonts on the swipeview page. It's pretty fucking obnoxious.

Safari:
screen shot 2013-05-24 at 11 16 40 am

Chrome:
screen shot 2013-05-24 at 11 16 13 am

@tophtucker
Copy link

Yeah I noticed this and never really investigated. I think it's worst in Firefox; in Webkit it seems to build up far slower. Is there a way to just periodically do some kind of hard reset? Alternately, we could just have the timer loop through once and then stop back on the first item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants