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

Fast vertical scrolling will make the list stuttering while drawing #1070

Open
Coldzer0 opened this issue Nov 3, 2021 · 4 comments
Open
Labels
Bug Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.

Comments

@Coldzer0
Copy link

Coldzer0 commented Nov 3, 2021

Hello guys

I was doing some testes with TVirtualStringTree and I found out that when I scroll fast this stuttering happen.
At first I thought that it's from my code or some options I changes but when I tested it with the already shipped examples it's the same.

This is noticed if I use the scroll bar with touch scrolling on a laptop or using the mouse to drag the bar down fast.

Here's a screenshot of the problem
image

I tested the same scenario with normal Delphi TListView with Double Buffering Enabled and it's very smooth. (without the Double Buffering It will have the same problem but not as bad as TVirtualStringTree)

I tested it with Delphi 11 on Windows 10 And Windows 11 (Latest update for both).

Thanks.

@joachimmarder
Copy link
Contributor

We are intensely using the Virtual TreeView control in our applications like TreeSize Professional and never saw this behavior.

Your screenshot seems to be taken from a modified sample project. Can you please attach the full source code of this project? I was unable to replicate the issue here.

@joachimmarder joachimmarder added the Repro Steps Missing A smple project is needed to reprodcue and analyze the issue. See our guidelines for opening issues! label Nov 3, 2021
@Coldzer0
Copy link
Author

Coldzer0 commented Nov 3, 2021

Hello @joachimmarder

It's the same sample as in Virtual-TreeView\Demos\Advanced I just compiled it with Delphi 11 And I tested it on Windows 10 , 11 Latest updates

Here's a GIF shows that When testing with a background the stuttering is gone but with the normal one without it, it has it.

VirtualTreeView_Issue

@Coldzer0
Copy link
Author

Coldzer0 commented Nov 3, 2021

And Here's a screenshot from TreeSize

image

@joachimmarder
Copy link
Contributor

I am indeed seeing temporary scroll artifacts when using the scroll bar instead of the mousewheel (which I usually use when scrolling) in a themed VCL application. I don't see them when the system style is active. Since you have seen those scroll artifacts in a TListView as well, I suspect a problem in the VCL theme code, which has some known issue in repaint / erase-background code.

I have no idea how I could fix this and since it occurs only as a short and temporary problem when not using the mouse wheel, I see it as low priority.

@joachimmarder joachimmarder added Bug Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR. and removed Repro Steps Missing A smple project is needed to reprodcue and analyze the issue. See our guidelines for opening issues! labels Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.
Projects
None yet
Development

No branches or pull requests

2 participants