| Summary: | In plasmashell, systemsettings and kinfocenter, minYExtent and maxYExtent are always changing when scrolling. | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | kde-yyds |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | ASSIGNED --- | ||
| Severity: | normal | CC: | nate, notmart |
| Priority: | NOR | ||
| Version First Reported In: | 6.2.0 | ||
| Target Milestone: | Not decided | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
video. scrolling fast in plasmashell kickoff with ctrl pressed
debug output |
||
|
Description
kde-yyds
2024-05-25 15:32:29 UTC
When originY is not 0, this bug happens. when scrolling in these apps, originY is always changing. Making it always 0 instead of reading the real property fixes this. You mean the readings of originY in the wheelhandler.cpp, right? I can see how it could be problematic, since originY might the result of estimations based on currently visible delegates + section delegates + header + footer sizes. My old but related MR: https://invent.kde.org/frameworks/kirigami/-/merge_requests/977 Created attachment 171571 [details]
debug output
here's some debug output.
in scrollFlickable()
```
std::cout << "\nheight=" << height << " ; contentHeight=" << contentHeight << "\ncontentY=" << contentY << " ; topMargin=" << topMargin<< "\nbottomMargin=" << bottomMargin << " ; originY=" << originY << "\nminYExtent=" << topMargin << "-" << originY << "=" << minYExtent<< "\nmaxYExtent=" << height << "-(" << contentHeight << "+" << bottomMargin << "+" << originY << ")=" << maxYExtent << "\n";
```
when scrolling, the scroll bar's length is always changing |