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

Resizing Safari Window causes scrolling... #22

Open
dissidently opened this issue Jan 6, 2016 · 2 comments
Open

Resizing Safari Window causes scrolling... #22

dissidently opened this issue Jan 6, 2016 · 2 comments

Comments

@dissidently
Copy link

In the demo:

https://mbostock.github.io/stack/

scrolling down works fine, but once down a few pages, if then resizing (vigorously) the Safari window, scrolling messages seem to be sent.

Perhaps this is a result of the resizing of the scroll bar hitting some limits that send scroll messages. But I'm only guessing.

This does not happen on the first slide/page. You'll need to go down a few pages/slides before resizing to see this happen.

@mbostock
Copy link
Owner

mbostock commented Jan 6, 2016

That’s not especially surprising. There’s some code to try to preserve the current scroll position in resize, but it’s probably not perfect, and I think Safari is more aggressive about deferring scroll events during resize. The problem is that the content resizes based on the width of the window, and the browser isn’t smart enough to maintain the vertical position automatically. If you discover a fix, let me know, but alas I have no plans to fix this myself.

@dissidently
Copy link
Author

I know nothing about how to fix such things. We'll have to rely on the wonders of the open sores community.

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

2 participants