Commit e986f818 authored by Dmitry Rozhkov's avatar Dmitry Rozhkov

[touchhelper] Ignore double tap in full screen mode

parent 7ea6e986
......@@ -145,6 +145,15 @@ void EmbedTouchListener::HandleDoubleTap(const CSSPoint& aPoint, int32_t, const
}
}
// Don't zoom in or out when in full screen
nsCOMPtr<nsIDOMDocument> document;
NS_ENSURE_SUCCESS(node->GetOwnerDocument(getter_AddRefs(document)), );
bool isFullScreen(false);
document->GetMozFullScreen(&isFullScreen);
if (isFullScreen) {
return;
}
if (!element) {
mService->ZoomToRect(mTopWinid, 0, 0, 0, 0);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment