Another tweak to the logic for releasing mouse capture into GLToolbar::on_mouse()

This commit is contained in:
Enrico Turri 2019-03-22 14:35:26 +01:00
parent db21c67f18
commit 6bf0cf9466
2 changed files with 31 additions and 3 deletions

View file

@ -238,6 +238,10 @@ private:
bool right;
GLCanvas3D* parent;
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
MouseCapture() { reset(); }
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
bool any() const { return left || middle || right; }
void reset() { left = middle = right = false; parent = nullptr; }
};