mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-20 18:04:18 +01:00
use DragSwitch in Column
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
actionbar::TimelineOpenResult,
|
actionbar::TimelineOpenResult,
|
||||||
|
drag::DragSwitch,
|
||||||
route::{Route, Router, SingletonRouter},
|
route::{Route, Router, SingletonRouter},
|
||||||
timeline::{Timeline, TimelineCache, TimelineKind},
|
timeline::{Timeline, TimelineCache, TimelineKind},
|
||||||
};
|
};
|
||||||
@@ -13,6 +14,7 @@ use tracing::warn;
|
|||||||
pub struct Column {
|
pub struct Column {
|
||||||
pub router: Router<Route>,
|
pub router: Router<Route>,
|
||||||
pub sheet_router: SingletonRouter<Route>,
|
pub sheet_router: SingletonRouter<Route>,
|
||||||
|
pub drag: DragSwitch,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Column {
|
impl Column {
|
||||||
@@ -21,6 +23,7 @@ impl Column {
|
|||||||
Column {
|
Column {
|
||||||
router,
|
router,
|
||||||
sheet_router: SingletonRouter::default(),
|
sheet_router: SingletonRouter::default(),
|
||||||
|
drag: DragSwitch::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user