╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │503 } │ │504 } │ │505 │ │506 - // request a forward navigation to `route`; Nav.sync builds it next │ │507 - fn navigate(self: *Session, route: RoutablePage) !void { │ │506 + // request a forward navigation to `route`; the host consumes next_page│ │507 + // (Nav.sync on the terminal, the wasm tick on the web). │ │508 + pub fn navigate(self: *Session, route: RoutablePage) !void { │ │509 self.next_page = route; │ │510 } │ │511 }; │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1043 pub const Scroll = struct { │ │1044 scroll: wgt.Scroll(Widget), │ │1045 │ │1045 - pub fn init(allocator: std.mem.Allocator, options: FlowBox.Options) !Scroll { │ │1046 + pub fn init(allocator: std.mem.Allocator, options: FlowBox.Options, web_native: bool) !Scroll { │ │1047 var layout_inner = try FlowBox.init(allocator, options); │ │1048 errdefer layout_inner.deinit(allocator); │ │1048 - var scroll = try wgt.Scroll(Widget).init(allocator, .{ .flow_box = layout_inner }, .{ .direction = .vert }); │ │1049 + var scroll = try wgt.Scroll(Widget).init(allocator, .{ .flow_box = layout_inner }, .{ .direction = .vert, .web_native = web_native });│ │1050 errdefer scroll.deinit(allocator); │ │1051 return .{ .scroll = scroll }; │ │1052 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯