Skip to content

Commit 52c2ab4

Browse files
committed
fix: haptic feedback tweaks
1 parent c01ad12 commit 52c2ab4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/me/ash/reader/ui/page/home/flow/PullToLoadIndicator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fun BoxScope.PullToLoadIndicator(
7373
LaunchedEffect(status) {
7474
when {
7575
canLoadNext && status == PulledUp -> {
76-
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
76+
hapticFeedback.performHapticFeedback(HapticFeedbackType.GestureThresholdActivate)
7777
}
7878

7979
else -> {}

app/src/main/java/me/ash/reader/ui/page/home/reading/PullToLoadIndicator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ fun BoxScope.PullToLoadIndicator(
4848
LaunchedEffect(status) {
4949
when {
5050
canLoadPrevious && status == PulledDown -> {
51-
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
51+
hapticFeedback.performHapticFeedback(HapticFeedbackType.GestureThresholdActivate)
5252
}
5353

5454
canLoadNext && status == PulledUp -> {
55-
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
55+
hapticFeedback.performHapticFeedback(HapticFeedbackType.GestureThresholdActivate)
5656
}
5757

5858
else -> {}

0 commit comments

Comments
 (0)