avoiding duplicated drag event updates
This commit is contained in:
parent
755e3fe932
commit
bbb3a6139f
@ -140,6 +140,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
private fun onDrag(currentDragState: DraggingState, newDragState: DraggingState) {
|
||||
if (currentDragState == newDragState) return
|
||||
when (newDragState) {
|
||||
is DraggingState.Cancelling -> voiceMessageViews.renderCancelling(newDragState.distanceX)
|
||||
is DraggingState.Locking -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user