From e3cafa635224f64a14eb21979e99cbb070f2e5c8 Mon Sep 17 00:00:00 2001 From: Pavel Tumakaev Date: Fri, 11 Mar 2022 17:46:13 +0300 Subject: [PATCH] [sailfishos][embedlite] Forward scroll events only for the root content document. Contributes to JB#57777 --- embedding/embedlite/embedthread/EmbedContentController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embedding/embedlite/embedthread/EmbedContentController.cpp b/embedding/embedlite/embedthread/EmbedContentController.cpp index 95dd7afb0c61a..343631ee97c43 100644 --- a/embedding/embedlite/embedthread/EmbedContentController.cpp +++ b/embedding/embedlite/embedthread/EmbedContentController.cpp @@ -155,6 +155,10 @@ void EmbedContentController::HandleLongTap(const LayoutDevicePoint aPoint, */ void EmbedContentController::DoSendScrollEvent(const layers::RepaintRequest aRequest) { + if (!aRequest.IsRootContent()) { + return; + } + if (MessageLoop::current() != mUILoop) { // We have to send this message from the "UI thread" (main // thread).