Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
15.9k
stars
1.16k
forks
source link
iOS. Use `nativeScale` instead of `scale` when we pass events to Compose, and create the Canvas for Compose #3316
Open
igordmn opened 1 year ago
We should use
value * uiview.nativeScale
for:Now we use
scale
. If it is different fromnativeScale
- it leads to resizing artifacts.We should use
uiview.scale
for:354.dp
in Compose)To do all that, we need to change public API of skiko as well. One of the solutions:
SkiaLayer.contentScale
- still returnsscale
(but it isn't used for internal calculations)nativeScale
SkikoPointerEvent.x
, just send it directly to scene.sendPointerEvent