зеркало из https://github.com/mozilla/gecko-dev.git
Bug 704456 - Add null check to horizontal swipe tracking handler. r=mstange
This commit is contained in:
Родитель
5ae94b67a1
Коммит
021e228427
|
@ -3095,7 +3095,10 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
|||
dampenAmountThresholdMin:-1
|
||||
max:1
|
||||
usingHandler:^(CGFloat gestureAmount, NSEventPhase phase, BOOL isComplete, BOOL *stop) {
|
||||
if (animationCancelled) {
|
||||
// Since this tracking handler can be called asynchronously, mGeckoChild
|
||||
// might have become NULL here (our child widget might have been
|
||||
// destroyed).
|
||||
if (animationCancelled || !mGeckoChild) {
|
||||
*stop = YES;
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче