summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-19 01:18:06 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-19 01:18:06 +0200
commit4e757a26d0c1c58001f31cf0592131cd5ad886ad (patch)
treeb01589981ac76d044a62b2293a699598d26a1ab8 /graphics
parent36e867de693d4e9fc64da3d9d7745a5b1398d8a5 (diff)
downloadiced-4e757a26d0c1c58001f31cf0592131cd5ad886ad.tar.gz
iced-4e757a26d0c1c58001f31cf0592131cd5ad886ad.tar.bz2
iced-4e757a26d0c1c58001f31cf0592131cd5ad886ad.zip
Implement `Scroll` action in `text::editor`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/text/editor.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/src/text/editor.rs b/graphics/src/text/editor.rs
index dfb91f34..a05312dc 100644
--- a/graphics/src/text/editor.rs
+++ b/graphics/src/text/editor.rs
@@ -446,6 +446,12 @@ impl editor::Editor for Editor {
}
}
}
+ Action::Scroll { lines } => {
+ editor.action(
+ font_system.raw(),
+ cosmic_text::Action::Scroll { lines },
+ );
+ }
}
self.0 = Some(Arc::new(internal));