summaryrefslogtreecommitdiffstats
path: root/examples/websocket
diff options
context:
space:
mode:
authorLibravatar bungoboingo <shankern@protonmail.com>2022-12-24 21:27:44 -0800
committerLibravatar bungoboingo <shankern@protonmail.com>2022-12-29 18:29:15 -0800
commit9f85e0c721927f1e3bd195a998ec7a80ec0e7455 (patch)
treeed4bc6f1f700f9570cc9c72428188d506951d80f /examples/websocket
parentd91f4f6aa74d0693179a02167d626efa3ac4c20b (diff)
downloadiced-9f85e0c721927f1e3bd195a998ec7a80ec0e7455.tar.gz
iced-9f85e0c721927f1e3bd195a998ec7a80ec0e7455.tar.bz2
iced-9f85e0c721927f1e3bd195a998ec7a80ec0e7455.zip
Reworked Scrollable to account for lack of widget order guarantees.
Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
Diffstat (limited to 'examples/websocket')
-rw-r--r--examples/websocket/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index b10ef17e..d1e45571 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -4,7 +4,7 @@ use iced::alignment::{self, Alignment};
use iced::widget::{
button, column, container, row, scrollable, text, text_input, Column,
};
-use iced::{executor, Vector};
+use iced::{executor, Point};
use iced::{
Application, Color, Command, Element, Length, Settings, Subscription, Theme,
};
@@ -83,7 +83,7 @@ impl Application for WebSocket {
scrollable::snap_to(
MESSAGE_LOG.clone(),
- Vector::new(0.0, 1.0),
+ Point::new(0.0, 1.0),
)
}
},