aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/BrowserPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r--support/hololens/ServoApp/BrowserPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp
index 0db7a055cec..617ef66e27d 100644
--- a/support/hololens/ServoApp/BrowserPage.cpp
+++ b/support/hololens/ServoApp/BrowserPage.cpp
@@ -35,6 +35,12 @@ void BrowserPage::BindServoEvents() {
reloadButton().IsEnabled(true);
stopButton().IsEnabled(false);
});
+ servoControl().OnCaptureGesturesStarted([=] {
+ servoControl().Focus(FocusState::Programmatic);
+ navigationBar().IsHitTestVisible(false);
+ });
+ servoControl().OnCaptureGesturesEnded(
+ [=] { navigationBar().IsHitTestVisible(true); });
}
void BrowserPage::LoadServoURI(Uri uri) {