Moritz Post
01/20/2022, 12:12 PMCanvas
composable in my compose desktop app. I have found that the Canvas.onDraw
method is called multiple times although the size of the canvas has not canged. This leads to jank since the drawing is quite intensive. Next to the canvas i have a couple of items that are clickable() so they show hoover feedback for the mouse cursor. Even just hoovering over these unrelated items triggers a redraw of the canvas. Is there a way to circumvent this redrawing?Zach Klippenstein (he/him) [MOD]
01/20/2022, 2:33 PMMoritz Post
01/20/2022, 2:33 PMZach Klippenstein (he/him) [MOD]
01/20/2022, 2:35 PMgraphicsLayer
modifier on your Canvas.Moritz Post
01/20/2022, 2:36 PMKebbin
01/27/2022, 2:49 AM.graphicsLayer()
modifier to make it work? The hover state animations?