From d91f4f6aa74d0693179a02167d626efa3ac4c20b Mon Sep 17 00:00:00 2001 From: Bingus Date: Sat, 19 Nov 2022 10:29:37 -0800 Subject: Add multidirectional scrolling capabilities to the existing Scrollable. --- src/widget.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widget.rs') diff --git a/src/widget.rs b/src/widget.rs index 76cea7be..ee30548c 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -99,7 +99,8 @@ pub mod radio { pub mod scrollable { //! Navigate an endless amount of content with a scrollbar. pub use iced_native::widget::scrollable::{ - snap_to, style::Scrollbar, style::Scroller, Id, StyleSheet, + snap_to, style::Scrollbar, style::Scroller, Direction, Horizontal, Id, + StyleSheet, }; /// A widget that can vertically display an infinite amount of content -- cgit From 9f85e0c721927f1e3bd195a998ec7a80ec0e7455 Mon Sep 17 00:00:00 2001 From: bungoboingo Date: Sat, 24 Dec 2022 21:27:44 -0800 Subject: Reworked Scrollable to account for lack of widget order guarantees. Fixed thumb "snapping" bug on scrollable when cursor is out of bounds. --- src/widget.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/widget.rs') diff --git a/src/widget.rs b/src/widget.rs index ee30548c..d034200c 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -99,8 +99,7 @@ pub mod radio { pub mod scrollable { //! Navigate an endless amount of content with a scrollbar. pub use iced_native::widget::scrollable::{ - snap_to, style::Scrollbar, style::Scroller, Direction, Horizontal, Id, - StyleSheet, + snap_to, style::Scrollbar, style::Scroller, Id, Properties, StyleSheet, }; /// A widget that can vertically display an infinite amount of content -- cgit From 624a4ada7981eb05c0b50cafa7e9545ad8347cb5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 8 Jan 2023 20:07:11 +0100 Subject: Introduce `RelativeOffset` type in `scrollable` --- src/widget.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widget.rs') diff --git a/src/widget.rs b/src/widget.rs index d034200c..f87782d0 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -99,7 +99,8 @@ pub mod radio { pub mod scrollable { //! Navigate an endless amount of content with a scrollbar. pub use iced_native::widget::scrollable::{ - snap_to, style::Scrollbar, style::Scroller, Id, Properties, StyleSheet, + snap_to, style::Scrollbar, style::Scroller, Id, Properties, + RelativeOffset, StyleSheet, }; /// A widget that can vertically display an infinite amount of content -- cgit