mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
remove state-changing argument causing unnecessary recompositions
This commit is contained in:
parent
dcd31f9671
commit
130158f510
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ fun Modifier.imageGridDragHandler(
|
||||||
autoScrollThreshold: Float,
|
autoScrollThreshold: Float,
|
||||||
setSelectedImageIds: (Set<Long>) -> Unit,
|
setSelectedImageIds: (Set<Long>) -> Unit,
|
||||||
setAutoScrollSpeed: (Float) -> Unit,
|
setAutoScrollSpeed: (Float) -> Unit,
|
||||||
) = pointerInput(autoScrollThreshold, setAutoScrollSpeed, setSelectedImageIds, imageList) {
|
) = pointerInput(autoScrollThreshold, setAutoScrollSpeed, imageList) {
|
||||||
|
|
||||||
fun imageIndexAtOffset(hitPoint: Offset): Int? =
|
fun imageIndexAtOffset(hitPoint: Offset): Int? =
|
||||||
gridState.layoutInfo.visibleItemsInfo.find { itemInfo ->
|
gridState.layoutInfo.visibleItemsInfo.find { itemInfo ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue