Skip to content

Commit

Permalink
Fix checkbox positioning (don't apply transform twice when rendering)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 6, 2024
1 parent 9e7b743 commit f98e402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blitz/src/renderer/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f98e402

Please sign in to comment.