-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up scroll physics as core objects with 2 options (Clamped and Elastic - open to better names). In addition, we expose 3 knobs for the Elastic physics: 1. Friction - the strength of the deceleration of the scroll after release 2. Speed multiplier - determines the initial speed at release 3. Elastic factor - determines the strength of the rubber banding Maybe we want to normalize them to values between 0-100 or 0-1? <img width="247" alt="Screenshot 2024-12-03 at 3 06 37 AM" src="https://github.com/user-attachments/assets/ce5a4bac-f714-4482-841f-1f78b8422d7a"> <img width="243" alt="Screenshot 2024-12-03 at 10 12 01 AM" src="https://github.com/user-attachments/assets/1dd71c52-86a0-48b2-aa2c-a37cac55b314"> Diffs= 0ff13be381 Make scroll physics core objects (#8672)
- Loading branch information
philter
committed
Dec 4, 2024
1 parent
26d5c48
commit 2c1d8a1
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9dfd01fb3a8853f666ffc0c02ed6869668a35432 | ||
0ff13be38182a9b2c8d908135bc679fbf8c08b07 |
Submodule rive-runtime
updated
36 files