v-bar icon indicating copy to clipboard operation
v-bar copied to clipboard

Scrollbar very slow

Open antonio-vargas opened this issue 7 years ago • 10 comments

When I scroll with the mouse, it feels like the scroll-bar slows down. Any way to fix it? Another question in case of adding more item in a div (with v-for) is the scroll-bar resized?

antonio-vargas avatar Apr 11 '17 21:04 antonio-vargas

Hi @Antoniobk! Thanks to share your question! About the bar resize, yes! The bar will be resized with more content. I use one 'event listener' with the content and then when changed, the bar will resized.

Now, about the slow down animation, you can provide a gif ou more information? Thanks!

luiguild avatar Apr 11 '17 21:04 luiguild

http://imgur.com/P4rjTED

antonio-vargas avatar Apr 11 '17 22:04 antonio-vargas

Nice! You can send to me your environment? What is this browser, your OS... 'because you are the first that report it to me... 🤔

luiguild avatar Apr 12 '17 00:04 luiguild

OS: Win10 Browser: Chrome 57.0.2

I was wondering about the scroll-bar resizing because I have a project where I use vue1.0 and use a custom scroll component and did not resize the scroll (Sorry for english, I'm studying)

antonio-vargas avatar Apr 12 '17 00:04 antonio-vargas

Relax, bro! I'm studying also 😃 Honestly I don't know what's going on in your case ... It's very strange this behavior... You can test in another browser?

luiguild avatar Apr 12 '17 00:04 luiguild

A friend made the same mistake OS: debian 8.7 (64 bit) web browser: firefox 45.8.0 web browser: chromium 57.0.2987.98 I was stealing with the arrow keys and it happens that the div does scroll but not the scroll-bar

antonio-vargas avatar Apr 12 '17 02:04 antonio-vargas

Ok, I tested now with the arrow keys and yes, it's a bug... You can help or work on this? I will investigate these things and soon I will report to you!

luiguild avatar Apr 12 '17 15:04 luiguild

Of course 😃

antonio-vargas avatar Apr 12 '17 16:04 antonio-vargas

You could animate the scrollbar position so it would at least look better 😬

appinteractive avatar Apr 22 '17 13:04 appinteractive

I found the problem...

V-Bar is just a simple wrapper of the native scroll bar... So, I get all browser's scroll responses, and with this, browser get of OS cursor's movement based on personal settings of each user. If in your cursor settings are set up to jump 3 lines (primarily in the Windows case) and not make a smooth movement, so V-Bar APPARENTLY are slow... But it's only apparently... I can't reproduce this in my environment because I have a Mac and all scroll moviment's are smooth by default...

I thinked about put a simple css transition, but the result it's strange (I guess)...

Someone have a better ideia?

luiguild avatar Jun 29 '17 04:06 luiguild