Bug 290673. Restore event->point after dispatching to views, in case someone wants to use it later (Windows widget appears to). r+sr=bzbarsky,a=asa

This commit is contained in:
roc+%cs.cmu.edu 2005-04-28 22:03:28 +00:00
Родитель 84b0577142
Коммит e9008d4b37
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -2512,6 +2512,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
// we'll crash in the next iteration. Oh well. The old code would have crashed too.
}
}
// Need to restore the event point here because someone may use it later.
// In particular Windows seems to need this.
aEvent->point = pt;
PL_FreeArenaPool(&displayArena);
PL_FinishArenaPool(&displayArena);