|
|
@ -24,7 +24,7 @@ import androidx.compose.foundation.InteractionState |
|
|
|
import androidx.compose.ui.semantics.semantics |
|
|
|
import androidx.compose.ui.semantics.semantics |
|
|
|
import androidx.compose.ui.geometry.Offset |
|
|
|
import androidx.compose.ui.geometry.Offset |
|
|
|
import androidx.compose.ui.gesture.DragObserver |
|
|
|
import androidx.compose.ui.gesture.DragObserver |
|
|
|
import androidx.compose.ui.gesture.dragGestureFilter |
|
|
|
import androidx.compose.ui.gesture.rawDragGestureFilter |
|
|
|
import androidx.compose.runtime.mutableStateOf |
|
|
|
import androidx.compose.runtime.mutableStateOf |
|
|
|
import example.imageviewer.core.EventLocker |
|
|
|
import example.imageviewer.core.EventLocker |
|
|
|
import example.imageviewer.style.Transparent |
|
|
|
import example.imageviewer.style.Transparent |
|
|
@ -37,8 +37,9 @@ fun Draggable( |
|
|
|
) { |
|
|
|
) { |
|
|
|
Surface( |
|
|
|
Surface( |
|
|
|
color = Transparent, |
|
|
|
color = Transparent, |
|
|
|
modifier = modifier.dragGestureFilter( |
|
|
|
modifier = modifier.rawDragGestureFilter( |
|
|
|
dragObserver = onDrag |
|
|
|
dragObserver = onDrag, |
|
|
|
|
|
|
|
canStartDragging = { true } |
|
|
|
) |
|
|
|
) |
|
|
|
) { |
|
|
|
) { |
|
|
|
children() |
|
|
|
children() |
|
|
|