зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1223296
- Clear element activation if a contextmenu is displayed. r=botond
--HG-- extra : commitid : ChrGznttoya
This commit is contained in:
Родитель
a0c19a6985
Коммит
93a999b964
|
@ -231,9 +231,12 @@ APZEventState::ProcessLongTap(const nsCOMPtr<nsIPresShell>& aPresShell,
|
|||
nsIDOMMouseEvent::MOZ_SOURCE_TOUCH);
|
||||
|
||||
APZES_LOG("Contextmenu event handled: %d\n", eventHandled);
|
||||
|
||||
// If no one handle context menu, fire MOZLONGTAP event
|
||||
if (!eventHandled) {
|
||||
if (eventHandled) {
|
||||
// If the contextmenu event was handled then we're showing a contextmenu,
|
||||
// and so we should remove any activation
|
||||
mActiveElementManager->ClearActivation();
|
||||
} else {
|
||||
// If no one handle context menu, fire MOZLONGTAP event
|
||||
LayoutDevicePoint currentPoint =
|
||||
APZCCallbackHelper::ApplyCallbackTransform(aPoint, aGuid)
|
||||
* widget->GetDefaultScale();
|
||||
|
|
Загрузка…
Ссылка в новой задаче