Skip to main content

scroll_position

Function scroll_position 

Source
pub fn scroll_position() -> (f32, f32)
Expand description

Returns the current absolute (scroll_x, scroll_y) coordinates in pixels. Guest applications should query these coordinates each frame and translate their drawing elements accordingly to support scrolling.