mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Disable URL bar hit testing while scrolling in Servo
This commit is contained in:
parent
5c1d130217
commit
aaefaee5dc
5 changed files with 68 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue