davidparsson / scrollbar-anywhere

Scrollbar Anywhere extension for Google Chrome - Click and drag anywhere to scroll
https://chrome.google.com/extensions/detail/namcaplenodjnggbfkbopdbfngponici/
MIT License
47 stars 7 forks source link

Scrolling stutters on pages with a lot of content #48

Open davidparsson opened 8 years ago

davidparsson commented 8 years ago

Reported in #47. I have seen this on very long pages with a lot of elements, and my investigation shows that getting scrollHeight or scrollTop on the element simply takes a lot of time. I've seen times in the range 100-150 ms.

Droyk commented 8 years ago

what kind of details you need at this moment ? and the only solution I can think of is different scrolling speed for every page but don't you think that a bit overkill why can your extenuation works like scrollbar doesn't lag or slowdown:question:

davidparsson commented 8 years ago

I believe that the scrollbar is a part of the browser's native code, while extensions run in JavaScript. This is one thing that limits the performance.

My experiments showed that the stuttering occurred at the times when the mouse button was pressed or released. Is that what you've seen as well?

ons 16 mars 2016 kl 14:09 skrev Raiden notifications@github.com:

what kind of details you need at this moment ? and the only solution I can think of is different scrolling speed for every page but don't you think that a bit overkill why can your extenuation works like scrollbar doesn't lag or slowdown[image: :question:]

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/davidparsson/scrollbar-anywhere/issues/48#issuecomment-197317939

Droyk commented 8 years ago

@davidparsson commented on Mar 16, 2016, 8:10 PM GMT+5:30:

Yup it occurs to me too on that time and it happens when I am gliding the page

davidparsson commented 8 years ago

Are you saying that it happens when it's gliding as well, and not only at the time when the mouse button is pressed or released?

Droyk commented 8 years ago

@davidparsson commented on Mar 17, 2016, 5:56 PM GMT+5:30:

Are you saying that it happens when it's gliding as well, and not only at the time when the mouse button is pressed or released?

@davidparsson commented on Mar 17, 2016, 5:56 PM GMT+5:30:

Are you saying that it happens when it's gliding as well, and not only at the time when the mouse button is pressed or released?

Yup it happens on gliding as well and actually mostly on my case it happens only on gliding...Gliding becomes much slower when there is lot of content on the page ...To fix this problem I have to go to the setting page and Have to increase the values ....and I have to revert those values to normal when My work is done with that page and it is really irritating to do that

davidparsson commented 8 years ago

Increase which values?

Sorry, but might this be a case of slow hardware? I only see stuttering when the mouse button is pressed/released.

You might want to try enabling Use Grab-and-drag style scrolling and configuring Scaling to your liking. This will make the scroll speed the same regardless of the page size. Please note that negative values are allowed if you want to reverse the scrolling direction.

Droyk commented 8 years ago

@davidparsson commented on Mar 17, 2016, 6:24 PM GMT+5:30:

Increase which values?

Sorry, but might this be a case of slow hardware? I only see stuttering when the mouse button is pressed/released.

You might want to try enabling Use Grab-and-drag style scrolling and configuring Scaling to your liking. This will make the scroll speed the same regardless of the page size. Please note that negative values are allowed if you want to reverse the scrolling direction.

no slow hardware is not the case I have an Intel Core i5 4670K and I only use Grab-and-drag style scrolling i don't really use scrollbar anywhere style scrolling and I tested it once without grab and style there was no lag at all with scrollbar anywhere style but the problem with this is I really don't like this style I only like grab an style and I have to change scaling values and friction values to change the speed and I uncheck change cursor while dragging because When I test it first time It was lagging a lot I like the change of cursor but unfortunately I had to disable it because of lagging :(

davidparsson commented 8 years ago

Oh, so it's only with grab-and-drag style scrolling? Ok, that's good to know.

Droyk commented 8 years ago

@davidparsson commented on Mar 18, 2016, 3:38 PM GMT+5:30:

Oh, so it's only with grab-and-drag style scrolling? Ok, that's good to know.

Yup in my case it's only with grab and drag style scrolling problem is I only use grab and drag style scrolling

Droyk commented 8 years ago

Hey see this page https://www.microsoft.com/en-gb/store/p/facebook/9wzdncrfj2wl This happens on steam store page too almost every time.

and if you want more examples just open any app page on microsoft or just browse steam for sometime and you will know what I am saying.

https://www.microsoft.com/en-gb/store/p/sway/9wzdncrd2g0j https://www.microsoft.com/en-gb/store/p/now-tv/9wzdncrdm157 https://www.microsoft.com/en-gb/store/p/netflix/9wzdncrfj3tj