2307vivek / Seeker

A highly customizable seekbar/slider library for android with support for readahead indicator, segments and more. Made with Jetpack Compose ❤.
Apache License 2.0
379 stars 14 forks source link

Add haptic feedback when seeking between segments #68

Open abdallahmehiz opened 5 months ago

abdallahmehiz commented 5 months ago

A similar effect to what Youtube has.

2307vivek commented 5 months ago

Good feature. Will merge after some testing.

2307vivek commented 5 months ago

HapticFeedbackType.TextHandleMove doesn't work on some devices. Only LongPress works.

2307vivek commented 5 months ago

The intended behavior should be that the haptics works only when the user is dragging on the seekbar, but the haptics gets activated even when the segment changes while in progress or when the LaunchedEffect is composed for the first time.

This is due to LaunchedEffect lamda being invoked whenever the segment changes. This should not be happening.