mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 07:20:10 +02:00
Merge pull request #3806 from ctrlaltdavid/fix-bandwidth-dialog-opening
Fix Bandwidth Details dialog opening if click meter's pos when UI hidden
This commit is contained in:
commit
c5426914ff
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