fix focus locking bug

This commit is contained in:
IlyaShurupov 2024-11-05 19:30:02 +03:00
parent c82ad3c150
commit 1bbce78a2e
8 changed files with 33 additions and 20 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;
}