summaryrefslogtreecommitdiffstats
path: root/examples/websocket
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-01-09 19:23:35 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-09 19:23:35 +0100
commit7ccd87c36b54e0d53f65f5774f140a0528ae4504 (patch)
treebf12f165d43c785adfd4ac906b8f4035035c5d42 /examples/websocket
parent07d755c6a270bd46fe9752ed57b3ceaddda1f081 (diff)
parent2d007474dd002dfc936f75f7379f1bbae72c5ad4 (diff)
downloadiced-7ccd87c36b54e0d53f65f5774f140a0528ae4504.tar.gz
iced-7ccd87c36b54e0d53f65f5774f140a0528ae4504.tar.bz2
iced-7ccd87c36b54e0d53f65f5774f140a0528ae4504.zip
Merge pull request #1550 from bungoboingo/feat/multidirectional-scrolling
[Feature] Multidirectional scrolling
Diffstat (limited to 'examples/websocket')
-rw-r--r--examples/websocket/src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index ff2929da..ccd9c815 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -81,7 +81,10 @@ impl Application for WebSocket {
echo::Event::MessageReceived(message) => {
self.messages.push(message);
- scrollable::snap_to(MESSAGE_LOG.clone(), 1.0)
+ scrollable::snap_to(
+ MESSAGE_LOG.clone(),
+ scrollable::RelativeOffset::END,
+ )
}
},
Message::Server => Command::none(),