fix focus locking bug

This commit is contained in:
IlyaShurupov 2024-11-05 19:30:02 +03:00
parent 458e56fb4c
commit 23fe07d3d3
9 changed files with 34 additions and 21 deletions

View file

@ -7,9 +7,10 @@ using namespace tp;
void ScrollableBarWidget::process(const EventHandler& events) {
// all content is visible no need to process anything
if (mSizeFactor >= 1) {
if (mScrolling) freeFocus();
mScrolling = false;
mPosFactor = mSizeFactor / 2.f;
freeFocus();
return;
}