Убраны комментарии лишние и улучшены модели

This commit is contained in:
2026-02-23 23:01:49 +03:00
parent b896a67fd4
commit bd58286c98
15 changed files with 169 additions and 193 deletions

View File

@@ -1,4 +1,3 @@
// Виджет холста: скролл, текстура, зум по Ctrl+колёсико.
const std = @import("std");
const dvui = @import("dvui");
const dvui_ext = @import("dvui_ext.zig");
@@ -120,7 +119,6 @@ fn handleCanvasZoom(canvas: *Canvas, scroll: anytype) void {
}
}
/// Обрабатывает события мыши: переводит позицию курсора в координаты документа и сохраняет в canvas.cursor_document_point.
fn handleCanvasMouse(canvas: *Canvas, scroll: anytype) void {
const natural_scale = if (canvas.native_scaling) 1 else dvui.windowNaturalScale();