Skip to content

Commit

Permalink
magnify -> zoom_gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
foxnne committed Dec 13, 2024
1 parent 3c4fa4e commit a91bd99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Pixi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ pub fn tick(app: *App, core: *Core) !void {
state.mouse.scroll_y = mouse_scroll.yoffset;
}
},
.magnify => |magnify| {
state.mouse.magnify = magnify.magnification;
.zoom_gesture => |gesture| {
state.mouse.magnify = gesture.zoom;
},
.mouse_motion => |mouse_motion| {
state.mouse.position = .{ @floatCast(mouse_motion.pos.x * content_scale[0]), @floatCast(mouse_motion.pos.y * content_scale[1]) };
Expand Down
2 changes: 1 addition & 1 deletion src/editor/artboard/artboard.zig
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ pub fn drawLogoScreen() void {
.{ .x = 1.0, .y = 1.0, .z = 1.0, .w = 0.30 },
.{ .x = 0.0, .y = 0.0, .z = 0.0, .w = 0.0 },
);
imgui.spacing();
imgui.dummy(.{ .x = 1.0, .y = 15.0 });
}
{ // Draw `Open Folder` button
const text: [:0]const u8 = " Open Folder " ++ pixi.fa.folder_open ++ " ";
Expand Down

0 comments on commit a91bd99

Please sign in to comment.