mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 03:13:32 +02:00
Fix Bandwidth Details dialog opening if click meter's pos when UI hidden
This commit is contained in:
parent
db3755f4a6
commit
bb15fc138c
1 changed files with 2 additions and 0 deletions
|
@ -1555,6 +1555,8 @@ void Application::checkBandwidthMeterClick() {
|
|||
// ... to be called upon button release
|
||||
|
||||
if (Menu::getInstance()->isOptionChecked(MenuOption::Bandwidth) &&
|
||||
Menu::getInstance()->isOptionChecked(MenuOption::Stats) &&
|
||||
Menu::getInstance()->isOptionChecked(MenuOption::UserInterface) &&
|
||||
glm::compMax(glm::abs(glm::ivec2(_mouseX - _mouseDragStartedX, _mouseY - _mouseDragStartedY)))
|
||||
<= BANDWIDTH_METER_CLICK_MAX_DRAG_LENGTH
|
||||
&& _bandwidthMeter.isWithinArea(_mouseX, _mouseY, _glWidget->width(), _glWidget->height())) {
|
||||
|
|
Loading…
Reference in a new issue