Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: chrome/browser/android/vr_shell/ui_elements.cc

Issue 2710593008: [VR Shell] Fix hidden elements being hit-testable. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/ui_elements.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements.cc b/chrome/browser/android/vr_shell/ui_elements.cc
index 3d6cf0042a120a7464e0fa714e098009120d4fef..d90f5d7681e5452ddb66d322387381375bb16885 100644
--- a/chrome/browser/android/vr_shell/ui_elements.cc
+++ b/chrome/browser/android/vr_shell/ui_elements.cc
@@ -196,7 +196,7 @@ bool ContentRectangle::IsVisible() const {
}
bool ContentRectangle::IsHitTestable() const {
- return hit_testable;
+ return IsVisible() && hit_testable;
}
} // namespace vr_shell
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698