Skip to content

Commit

Permalink
adjust width and friction
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 authored and MrSltun committed Nov 21, 2024
1 parent 1bebb25 commit 9fbbfc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/Components/Swipeable/Swipeable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Animated, {
useSharedValue,
} from "react-native-reanimated"

const FRICTION = 1.2
const FRICTION = 1
const SWIPE_TO_INTERACT_THRESHOLD = 80

export interface SwipeableComponentProps extends SwipeableProps {
Expand Down
2 changes: 1 addition & 1 deletion src/app/Components/Tasks/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Task = forwardRef<SwipeableMethods, TaskProps>(
Clear
</Text>
}
actionComponentWidth={80 * fontScale}
actionComponentWidth={70 * fontScale}
actionOnPress={handleClearTask}
actionOnSwipe={handleClearTask}
enabled={!disableSwipeable}
Expand Down

0 comments on commit 9fbbfc2

Please sign in to comment.