diff --git a/packages/blitz/src/renderer/render.rs b/packages/blitz/src/renderer/render.rs index 3c4f629b..b3cea7bf 100644 --- a/packages/blitz/src/renderer/render.rs +++ b/packages/blitz/src/renderer/render.rs @@ -373,8 +373,8 @@ impl<'dom> VelloSceneGenerator<'dom> { y: cx.pos.y - element.scroll_offset.y, }; cx.transform = cx.transform.then_translate(Vec2 { - x: cx.transform.translation().x - element.scroll_offset.x, - y: cx.transform.translation().y - element.scroll_offset.y, + x: -element.scroll_offset.x, + y: -element.scroll_offset.y, }); cx.draw_image(scene); cx.draw_svg(scene);