Improve background drag behavior on display layout screen

If you moved into and mouse-up-ed over one of the menus while dragging
the background, it stopped registering movement and "up events" which
felt really awkward.

This is not super pretty, better would be a win32-SetCapture-like
mechanism but works okay.
This commit is contained in:
Henrik Rydgård 2022-12-13 00:27:22 +01:00
parent ff4971ff62
commit 630b7830fa

View File

@ -95,7 +95,7 @@ bool ViewGroup::Touch(const TouchInput &input) {
if ((*iter)->GetVisibility() == V_VISIBLE) {
bool touch = (*iter)->Touch(input);
any = any || touch;
if (exclusiveTouch_ && touch) {
if (exclusiveTouch_ && touch && (input.flags & TOUCH_DOWN)) {
break;
}
}