mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 05:45:33 +00:00
Bug 1265551 - Autocomplete popup lags behind pan/zoom position r=kats
This commit is contained in:
parent
3837790c7f
commit
a6e212d425
@ -125,11 +125,16 @@ AndroidContentController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
||||
// will redispatch to the main thread. We want to make sure that our handling
|
||||
// only happens on the main thread.
|
||||
ChromeProcessController::NotifyAPZStateChange(aGuid, aChange, aArg);
|
||||
if (NS_IsMainThread() && aChange == layers::GeckoContentController::APZStateChange::TransformEnd) {
|
||||
// This is used by tests to determine when the APZ is done doing whatever
|
||||
// it's doing. XXX generify this as needed when writing additional tests.
|
||||
if (NS_IsMainThread()) {
|
||||
nsCOMPtr<nsIObserverService> observerService = mozilla::services::GetObserverService();
|
||||
observerService->NotifyObservers(nullptr, "APZ:TransformEnd", nullptr);
|
||||
if (aChange == layers::GeckoContentController::APZStateChange::TransformEnd) {
|
||||
// This is used by tests to determine when the APZ is done doing whatever
|
||||
// it's doing. XXX generify this as needed when writing additional tests.
|
||||
observerService->NotifyObservers(nullptr, "APZ:TransformEnd", nullptr);
|
||||
observerService->NotifyObservers(nullptr, "PanZoom:StateChange", MOZ_UTF16("NOTHING"));
|
||||
} else if (aChange == layers::GeckoContentController::APZStateChange::TransformBegin) {
|
||||
observerService->NotifyObservers(nullptr, "PanZoom:StateChange", MOZ_UTF16("PANNING"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user