diff options
author | Paul Rouget <me@paulrouget.com> | 2019-08-20 10:10:07 +0200 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2019-08-21 11:12:20 +0200 |
commit | aaefaee5dc93bd0aa0c21e3d717e178b0145142b (patch) | |
tree | bd70a23e8fa64a7d4b6c3991b2eb2b11dee039f2 /support/hololens/ServoApp/BrowserPage.cpp | |
parent | 5c1d130217db8ece7313d69a7e76130085d67e94 (diff) | |
download | servo-aaefaee5dc93bd0aa0c21e3d717e178b0145142b.tar.gz servo-aaefaee5dc93bd0aa0c21e3d717e178b0145142b.zip |
Disable URL bar hit testing while scrolling in Servo
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r-- | support/hololens/ServoApp/BrowserPage.cpp | 6 |
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) { |