Skip to content

Commit

Permalink
Draggables (aka scrolling)
Browse files Browse the repository at this point in the history
The scrolling branches were getting unwieldy so I reworked the changes into a new clean branch.

It's missing a lot of stuff like horizontal/vertical abstraction (just does vertical) but it has the new concept of draggables which will allow for creating sliders, carousels, etc.

Here's a sample .rev.
[scroll.rev.zip](https://github.com/user-attachments/files/17640299/scroll.rev.zip)

https://github.com/user-attachments/assets/a33c8a90-d96b-41ad-85ae-337f02f077b3

Diffs=
5d65f91a4d Draggables (aka scrolling) (#8493)
  • Loading branch information
philter committed Dec 2, 2024
1 parent cc107de commit 4ada750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
043dbff5a75eda49b3905806489ad287404c4e36
5d65f91a4da22411543e4a4c31fd1d7528bd84fc
2 changes: 1 addition & 1 deletion submodules/rive-runtime
Submodule rive-runtime updated 30 files
+1 −1 .rive_head
+20 −0 dev/defs/constraints/draggable_constraint.json
+21 −0 dev/defs/constraints/scroll_bar_constraint.json
+19 −0 dev/defs/constraints/scroll_constraint.json
+55 −0 include/rive/constraints/draggable_constraint.hpp
+15 −0 include/rive/constraints/layout_constraint.hpp
+40 −0 include/rive/constraints/scroll_bar_constraint.hpp
+48 −0 include/rive/constraints/scroll_bar_constraint_proxy.hpp
+151 −0 include/rive/constraints/scroll_constraint.hpp
+30 −0 include/rive/constraints/scroll_constraint_proxy.hpp
+91 −0 include/rive/constraints/scroll_physics.hpp
+7 −0 include/rive/constraints/transform_constraint.hpp
+71 −0 include/rive/generated/constraints/draggable_constraint_base.hpp
+73 −0 include/rive/generated/constraints/scroll_bar_constraint_base.hpp
+73 −0 include/rive/generated/constraints/scroll_constraint_base.hpp
+33 −0 include/rive/generated/core_registry.hpp
+58 −0 include/rive/layout_component.hpp
+1 −0 include/rive/listener_type.hpp
+1 −1 include/rive/transform_component.hpp
+3 −0 src/advancing_component.cpp
+174 −16 src/animation/state_machine_instance.cpp
+189 −0 src/constraints/scroll_bar_constraint.cpp
+21 −0 src/constraints/scroll_bar_constraint_proxy.cpp
+137 −0 src/constraints/scroll_constraint.cpp
+25 −0 src/constraints/scroll_constraint_proxy.cpp
+112 −0 src/constraints/scroll_physics.cpp
+30 −15 src/constraints/transform_constraint.cpp
+11 −0 src/generated/constraints/scroll_bar_constraint_base.cpp
+11 −0 src/generated/constraints/scroll_constraint_base.cpp
+66 −4 src/layout_component.cpp

0 comments on commit 4ada750

Please sign in to comment.