This commit is contained in:
Adrian Wannenmacher committed 2022-12-16 12:10:49 +01:00
1 parent 053dc6fa3e
commit 75357e974d
2 files changed
+2 -3

No files matched your search

@@ -26,8 +26,7 @@ pub(crate) fn update_history(window: &Window, history: &History) {
}
}
pub(crate) fn update_scroll(window: &Window, history: &History) -> AnimationFrame
{
pub(crate) fn update_scroll(window: &Window, history: &History) -> AnimationFrame {
let ScrollPosition { x, y } = history
.state()
.map(|state| serde_wasm_bindgen::from_value(state).unwrap_or_default())