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

Fix visual tearing in scroll-view (#11760) #12672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CollinBartlam
Copy link

This should fix the visual tearing issue seen when scrolling or navigating in the categories box within menu@cinnamon as described in #11760. While this approach resolves the issue, I haven't worked with Cinnamon's codebase before, so feedback on improving the implementation is welcome.

@fredcw
Copy link
Contributor

fredcw commented Jan 27, 2025

I haven't tested this so I don't know if it works but in any case, this seems like a workaround rather than fixing the actual cause. The scrolling seems to be working ok except that the area being scrolled is being miscalculated.

It seems that the width of the area on the right that is not being repainted (left behind) is equal to the left padding of the child actor. In other words, the width of the repainted area is ok but is positioned to ignore the left padding of the child actor.

Another thing to note is that this problem does not occur with autoscrolling (mouseover scrolling) and neither if the priv->vscrollbar_policy is set to ST_POLICY_NEVER

cf. #11760 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants