Skip to content

Commit f0105b9

Browse files
Scroll behavior component (#1107)
* Naive first step to refactor out scroll logic into separate component * Move a bunch of event logic to `scroll_component` from `Scroll` * Add method to coordinate painting with `scroll_component` * Move a bunch of lifecycle logic to `scroll_component` from `Scroll` * Documentation pass on `scroll_component` * Rename `Scroll` to `AbsoluteScroll` & add scroll functionality to `List` * Add ability to change layout axis for `List` with builder fn * Scroll behavior component changelog * Pass `BarHoveredState` by value and add impl Default for ScrollComponent * `ScrollComponent` review changes * Add some missing information to `ScrollComponent` documentation * `ScrollContainer` review take 2 * Changes from #1057 * ScrollComponent clippy * Remove List changes (updated to master) & fix Scroll regression * Add missing doc comments * Be a bit more careful about event consuming * Fix dup changelog entry & doc comment misspelling
1 parent a24c82f commit f0105b9

File tree

5 files changed

+553
-381
lines changed

5 files changed

+553
-381
lines changed

AUTHORS

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Kaiyin Zhong
1111
Kaur Kuut
1212
Leopold Luley
1313
Andrey Kabylin
14-
Robert Wittams
14+
Garrett Risley
15+
Robert Wittams

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ You can find its changes [documented below](#060---2020-06-01).
1212
- Export `Image` and `ImageData` by default. ([#1011] by [@covercash2])
1313
- Re-export `druid_shell::Scalable` under `druid` namespace. ([#1075] by [@ForLoveOfCats])
1414
- `TextBox` now supports ctrl and shift hotkeys. ([#1076] by [@vkahl])
15+
- `ScrollComponent` for ease of adding consistent, customized, scrolling behavior to a widget. ([#1107] by [@ForLoveOfCats])
1516
- Selection text color to textbox. ([#1093] by [@sysint64])
1617
- `BoxConstraints::UNBOUNDED` constant. ([#1126] by [@danieldulaney])
1718
- Close requests from the shell can now be intercepted ([#1118] by [@jneem])
@@ -396,6 +397,7 @@ Last release without a changelog :(
396397
[#1093]: https://github.com/linebender/druid/pull/1093
397398
[#1100]: https://github.com/linebender/druid/pull/1100
398399
[#1103]: https://github.com/linebender/druid/pull/1103
400+
[#1107]: https://github.com/linebender/druid/pull/1107
399401
[#1118]: https://github.com/linebender/druid/pull/1118
400402
[#1119]: https://github.com/linebender/druid/pull/1119
401403
[#1120]: https://github.com/linebender/druid/pull/1120

druid/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ pub mod lens;
157157
mod localization;
158158
mod menu;
159159
mod mouse;
160+
pub mod scroll_component;
160161
#[cfg(not(target_arch = "wasm32"))]
161162
#[cfg(test)]
162163
mod tests;

0 commit comments

Comments
 (0)