Skip to content

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

Open

Description

@Coldzer0

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.

Activity

  1. joachimmarder commented on Nov 3, 2021

    @joachimmarder
    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.

  2. added
    Repro Steps MissingA smple project is needed to reprodcue and analyze the issue. See our guidelines for opening issues!
    on Nov 3, 2021
  3. Coldzer0 commented on Nov 3, 2021

    @Coldzer0
    Author

    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

  4. Coldzer0 commented on Nov 3, 2021

    @Coldzer0
    Author

    And Here's a screenshot from TreeSize

    image

  5. joachimmarder commented on Nov 6, 2021

    @joachimmarder
    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.

  6. added
    Pull Requests InvitedThere are no current plans to address the issue, but we would be happy if someone supplies a PR.
    and removed
    Repro Steps MissingA smple project is needed to reprodcue and analyze the issue. See our guidelines for opening issues!
    on Nov 6, 2021
  7. pyscripter commented on Jan 13, 2025

    @pyscripter
    Contributor

    I have also observed the same issue with a Scrollbox in ChatLLM. It scrolls very smoothly with the System style, but artifacts similar to those above appear with other styles when scrolling with the mouse.

    There are various issues with the styled scrollbars. See for instance https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-2252.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugLow PriorityPull Requests InvitedThere are no current plans to address the issue, but we would be happy if someone supplies a PR.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions