Skip to content

Commit

Permalink
fix(gestures): long press triggering even when locked
Browse files Browse the repository at this point in the history
another sloppy mistake
  • Loading branch information
abdallahmehiz committed Aug 31, 2024
1 parent b4099e3 commit 65c1849
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ fun GestureHandler(modifier: Modifier = Modifier) {
interactionSource.emit(PressInteraction.Release(press))
},
onLongPress = {
if (areControlsLocked) return@detectTapGestures
if (!isLongPressing && !viewModel.paused.value) {
haptics.performHapticFeedback(HapticFeedbackType.LongPress)
isLongPressing = true
Expand Down

0 comments on commit 65c1849

Please sign in to comment.