mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix emoji tone popup being misplaced for 1 frame
This commit is contained in:
parent
efac63ac10
commit
ed36c99ff9
@ -226,6 +226,7 @@ fun Emojis(
|
||||
|
||||
var viewWidth by remember { mutableIntStateOf(0) }
|
||||
var viewHeight by remember { mutableIntStateOf(0) }
|
||||
var popupSize by remember { mutableStateOf(IntSize(0, 0)) }
|
||||
|
||||
Box(modifier = modifier) {
|
||||
AndroidView(
|
||||
@ -267,8 +268,6 @@ fun Emojis(
|
||||
)
|
||||
|
||||
activePopup?.let { popupInfo ->
|
||||
var popupSize by remember { mutableStateOf(IntSize(0, 0)) }
|
||||
|
||||
val posX = popupInfo.x - popupSize.width / 2
|
||||
val posY = popupInfo.y - popupSize.height
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user