Skip to content

Commit

Permalink
[embedlite] Send AsyncScrollDOMEvent only for the root frame. Fixes J…
Browse files Browse the repository at this point in the history
…B#32828

Signed-off-by: Raine Makelainen <raine.makelainen@jolla.com>
  • Loading branch information
rainemak committed Oct 23, 2015
1 parent 701484b commit a03092b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedding/embedlite/embedthread/EmbedContentController.cpp
Expand Up @@ -122,7 +122,7 @@ void EmbedContentController::SendAsyncScrollDOMEvent(bool aIsRoot,
gfxRect rect(aContentRect.x, aContentRect.y, aContentRect.width, aContentRect.height);
gfxSize size(aScrollableSize.width, aScrollableSize.height);

if (mRenderFrame && !GetListener()->SendAsyncScrollDOMEvent(rect, size)) {
if (mRenderFrame && aIsRoot && !GetListener()->SendAsyncScrollDOMEvent(rect, size)) {
unused << mRenderFrame->SendAsyncScrollDOMEvent(rect, size);
}
}
Expand Down

0 comments on commit a03092b

Please sign in to comment.