R3.2: Ctrl+wheel zooms one step per notch; version 0.1.4 [skip ci]

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-12 23:15:47 -04:00
1 parent c1880288a5
commit ee1b8ad375
13 files changed
+274 -37

No files matched your search

+5 -2
View File
@@ -198,7 +198,7 @@ impl PdfView {
})
.collect();
let this = cx.entity();
let (down, moved, up) = (this.clone(), this.clone(), this.clone());
let (down, moved, up, wheeled) = (this.clone(), this.clone(), this.clone(), this.clone());
let pages = div()
.id("pdf-pages")
.size_full()
@@ -249,7 +249,10 @@ impl PdfView {
.top_0()
.left_0()
.size_full();
div().relative().size_full().child(pages).child(measure).into_any_element()
let zoom = ely_ui::wheel::zoom_layer(move |event, _, cx| {
wheeled.update(cx, |view, cx| view.wheel_zoom(event, cx))
});
div().relative().size_full().child(pages).child(measure).child(zoom).into_any_element()
}
/// Asks for the first missing tile, one at a time.