Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,16 @@ class RNGestureHandlerButtonViewManager :
return
}

if (!enabled && isPressed) {
setPressed(false)

// No finger lifted, so skip the press-out fade: it would overlap the
// restyle that usually comes with disabling and show as a flash.
pendingPressOut?.let { handler?.removeCallbacks(it) }
pendingPressOut = null
animateTo(restingOpacity, restingScale, restingUnderlayOpacity, 0)
}

// The managed handler mirrors the button's enabled state.
managedHandlerNeedsUpdate = true

Expand Down
Loading