Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

refactor(ui-egui): move wheel_pager.rs into canvas/

aiongg1f738016acf3
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 7fa55ec50..996b95f80 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -31,6 +31,7 @@ pub mod scroll_speed;
mod selection;
pub(super) mod signature_drag;
pub(super) mod wheel_boost;
+pub(super) mod wheel_pager;
mod xform;
mod zoom;
diff --git a/crates/ui-egui/src/wheel_pager.rs b/crates/ui-egui/src/canvas/wheel_pager.rs
similarity index 100%
rename from crates/ui-egui/src/wheel_pager.rs
rename to crates/ui-egui/src/canvas/wheel_pager.rs
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 073228fee..40870b92e 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -123,7 +123,6 @@ mod tab_context;
pub mod theme;
pub mod ui_scale;
pub mod updates;
-mod wheel_pager;
mod widgets;
pub mod window_controls;
#[cfg(not(target_arch = "wasm32"))]
@@ -155,6 +154,7 @@ use canvas::page_pointer;
pub use canvas::scroll_speed;
use canvas::signature_drag;
use canvas::wheel_boost;
+use canvas::wheel_pager;
pub use hooks::{FailedInbox, HostDirtyFn, HostSaveFn, Inbox, OsEvent, OsEventsFn};
#[cfg(test)]
use state::CopyPage;