Reset GlassHighlightNode cache on detach, fixed #4

This commit is contained in:
Kyant0 committed 2025-08-04 18:32:21 +08:00
1 parent a0595c0af2
commit 2de499019b
1 file changed
+9
@@ -201,6 +201,15 @@ internal class GlassHighlightNode(
graphicsContext.releaseGraphicsLayer(layer)
graphicsLayer = null
}
_size = Size.Unspecified
_density = Float.NaN
_layoutDirection = LayoutDirection.Ltr
_color = Color.Unspecified
_strokeWidthPx = Float.NaN
_topLeft = Offset.Unspecified
_outline = null
_cornerRadiusPx = Float.NaN
}
fun update(