Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelikesdesign committed Sep 13, 2024
1 parent 70c3ced commit 2504cf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ Drag around to see random shapes generated that vary in shape type, color and si
[Demo](https://x.com/mikelikesdesign/status/1834208983193976976)

## paper navigation
Drag around to jump to different pages quickly
Drag around to jump to different pages quickly
[Demo](https://x.com/mikelikesdesign/status/1834568721177731268)
Binary file not shown.
2 changes: 1 addition & 1 deletion paper navigation/paper navigation/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct ContentView: View {
.onChanged { value in
isDragging = true
let dragDistance = value.translation.width - lastDragPosition
let pageChangeThreshold: CGFloat = 50 // Adjust this value to change sensitivity
let pageChangeThreshold: CGFloat = 30 // Reduced from 50 to 30 for more sensitivity

if abs(dragDistance) > pageChangeThreshold {
let direction = dragDistance > 0 ? -1 : 1
Expand Down

0 comments on commit 2504cf3

Please sign in to comment.