Skip to content

Commit

Permalink
feat: Add x and y getters for the scroll controller
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 4, 2024
1 parent d7725b0 commit b5ffa42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/components/src/scroll_views/use_scroll_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ impl ScrollController {
}
}

pub fn x(&self) -> Signal<i32> {
self.x
}

pub fn y(&self) -> Signal<i32> {
self.y
}

pub fn use_apply(&mut self, width: f32, height: f32) {
let scope_id = current_scope_id().unwrap();

Expand Down

0 comments on commit b5ffa42

Please sign in to comment.