|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Scrollable::scroll_by | ( | Layer & | layer, |
| glm::vec2 | delta | ||
| ) |
Apply a scroll delta and reflow every tracked element.
The input-agnostic core: place() wires wheel input to this by default, but any other trigger can call it directly with its own delta - nothing here assumes the source.
| layer | Layer the viewport and every tracked element were registered on. |
| delta | Content-space scroll delta, added to the current offset and clamped to scroll->content_bounds. |
Definition at line 131 of file Scrollable.cpp.
References MayaFlux::Kinesis::apply_scroll(), MayaFlux::Portal::Forma::Layer::get(), m_indicator, m_tracked, offset, and scroll.
Here is the call graph for this function: