Bug 1223296 - Clear element activation if a contextmenu is displayed. r=botond

--HG--
extra : commitid : ChrGznttoya
This commit is contained in:
Kartikaya Gupta 2015-11-13 15:10:52 -05:00
Родитель a0c19a6985
Коммит 93a999b964
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -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();