mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-22 04:22:32 +01:00
Bugfixes
This commit is contained in:
@@ -12,7 +12,6 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
|
|||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.BoxScope
|
import androidx.compose.foundation.layout.BoxScope
|
||||||
import androidx.compose.foundation.layout.ColumnScope
|
import androidx.compose.foundation.layout.ColumnScope
|
||||||
import androidx.compose.foundation.layout.fillMaxHeight
|
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.material.DropdownMenu
|
import androidx.compose.material.DropdownMenu
|
||||||
import androidx.compose.material.ripple.rememberRipple
|
import androidx.compose.material.ripple.rememberRipple
|
||||||
@@ -43,8 +42,7 @@ fun DropdownIconButton(
|
|||||||
content = dropdownItems
|
content = dropdownItems
|
||||||
)
|
)
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier.fillMaxHeight()
|
modifier = Modifier.size(48.dp)
|
||||||
.size(48.dp)
|
|
||||||
.clickable(
|
.clickable(
|
||||||
remember { MutableInteractionSource() },
|
remember { MutableInteractionSource() },
|
||||||
role = Role.Button,
|
role = Role.Button,
|
||||||
@@ -56,7 +54,7 @@ fun DropdownIconButton(
|
|||||||
forEachGesture {
|
forEachGesture {
|
||||||
awaitPointerEventScope {
|
awaitPointerEventScope {
|
||||||
awaitEventFirstDown().mouseEvent?.let {
|
awaitEventFirstDown().mouseEvent?.let {
|
||||||
offset = DpOffset(it.x.dp, it.y.dp)
|
offset = DpOffset(it.xOnScreen.dp, it.yOnScreen.dp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ class ReaderMenuViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OptIn(DelicateCoroutinesApi::class)
|
||||||
fun updateLastPageReadOffset(offset: Int) {
|
fun updateLastPageReadOffset(offset: Int) {
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
chapter.value?.chapter?.updateRemote(chapterHandler, offset)
|
chapter.value?.chapter?.updateRemote(chapterHandler, offset)
|
||||||
|
|||||||
Reference in New Issue
Block a user