iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
23.06k stars 1.06k forks source link

Scrollable content remains at the top of a scrollable #2348

Open njust opened 2 months ago

njust commented 2 months ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

When scrolling content, some artifacts of the scrolled content remain at the top of the scrollable:

https://github.com/iced-rs/iced/assets/2380253/ddce04f9-aa23-4e29-91cf-a4ad0e2a2df0

It seems that only the tiny-skia backend is affected. I have a small repro here:

https://github.com/njust/iced/tree/scrollable_issue/examples/todos

What is the expected behavior?

No artifacts of the scrolled content should remain at the top of the scrollable.

Version

master

Operating System

Windows

Do you have any log output?

No response

ArtBlnd commented 1 month ago

It does same to the PaneGrid with Canvas in the web too. If I move or resize grid. this happened. Any idea about this? maybe I can contribute on this.

image