feat(workout-summary): add lengths, avg pace, and per-set pool pace stats; fix swipe direction
This commit is contained in:
@@ -19,7 +19,8 @@ export function SwipeableRow({ children, onDelete, deleteLabel = "Delete" }: Swi
|
||||
const onHandlerStateChange = (event: any) => {
|
||||
if (event.oldState === State.ACTIVE) {
|
||||
const { translationX } = event.nativeEvent;
|
||||
const newOffset = lastOffset.current + translationX;
|
||||
const clampedTranslation = Math.min(0, translationX);
|
||||
const newOffset = lastOffset.current + clampedTranslation;
|
||||
|
||||
if (newOffset < -80) {
|
||||
Animated.spring(translateX, {
|
||||
|
||||
Reference in New Issue
Block a user