-
Notifications
You must be signed in to change notification settings - Fork 99
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
Bugfixes (hopefully :)) #95
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR. Can you provide test case for the first one? |
I created a simplified test case (originally the code was a part of a complex, currently non-public web application):
The problem happens when you move the mouse over the BADBAD... text and try to scroll with the mouse wheel (sometimes you have to click on the text before too). With disabled SmoothScroll the scrolling never breaks. Oh and maybe my description of the problem is inaccurate as in this example the body is fixed, it cannot scroll, so simply nothing happens (but it turns out by debugging SmoothScroll's code that it tries to scroll the body instead of the div). |
Thanks for taking the time and coming up with a simplified use case. The problem is that it's not realistic. Can you show me one where the body doesn't have (in addition to the simplified use case, you could also show me the website where you encountered the problem, if there was any) |
I don't know any other site with same problem. I copied the example from the demo page of DockSpawn: http://www.dockspawn.com/demos/ide/dock_spawn_demo_ide.html But then I will remove the position:fixed from my code, I don't know why it is set in the first place (but I am not too pro in HTML, so...). |
Yeah Doesn't really make sense to use it on the I'll review your second suggestion in this PR as well. [1] https://developer.mozilla.org/en-US/docs/Web/CSS/position |
The bug for the second pull request happened most frequently on StackOverflow where a code snippet was in an overflowed box. It is a more radical change and I don't know the performance and other implications. So I'd propose you rewrite to make it more fitting for SmoothScroll (but meanwhile I could use it for myself without the annoying scroll stopping effect). Btw probably I will create a third PR: if an overflowed div is scrolled to the bottom, no more scrolling happens, but the default operation of Chrome is that then its parent (or the body) is scrolled (so you don't have to move your mouse to continue the scrolling). |
Yup, I remember the "StackOverflow effect". SS does behave differently than the native scrolling now, you have a point there. I'll think about it how to best implement this. |
I had two bugs:
I fixed them, hopefully :)