The reveal effect is not exactly above the element to be revealed.
This should not occur for apps written completely in Compose and is likely an interoperability issue
between legacy Android views and Compose. It might occur when you place a ComposeView
in a View
layout with other views placed above or around. Reveal
uses positionInRoot
to determine the position of revealable items. "Root" in this case is the root composable. If the
root composable is also the root view like in full-compose apps, this is not a problem. However
if the ComposeView
is somewhere else in the view hierarchy, that might cause this problem. To
work around it, specify the additional offset to be applied to all revealables with the
revealableOffset
parameter of the FullscreenRevealOverlayInserter
which is passed to the
overlayInserter
argument of the RevealCanvas
composable.