mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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
|
@ -32,9 +32,22 @@ void ServoControl::Shutdown() {
|
|||
}
|
||||
|
||||
void ServoControl::OnLoaded(IInspectable const &, RoutedEventArgs const &) {
|
||||
Panel().PointerReleased(
|
||||
auto panel = Panel();
|
||||
panel.PointerReleased(
|
||||
std::bind(&ServoControl::OnSurfaceClicked, this, _1, _2));
|
||||
Panel().ManipulationDelta(
|
||||
panel.ManipulationStarted(
|
||||
[=](IInspectable const &,
|
||||
Input::ManipulationStartedRoutedEventArgs const &e) {
|
||||
mOnCaptureGesturesStartedEvent();
|
||||
e.Handled(true);
|
||||
});
|
||||
panel.ManipulationCompleted(
|
||||
[=](IInspectable const &,
|
||||
Input::ManipulationCompletedRoutedEventArgs const &e) {
|
||||
mOnCaptureGesturesEndedEvent();
|
||||
e.Handled(true);
|
||||
});
|
||||
panel.ManipulationDelta(
|
||||
std::bind(&ServoControl::OnSurfaceManipulationDelta, this, _1, _2));
|
||||
InitializeConditionVariable(&mGLCondVar);
|
||||
InitializeCriticalSection(&mGLLock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue