Skip to content

Commit 7ccd87c

Browse files
authored
Merge pull request #1550 from bungoboingo/feat/multidirectional-scrolling
[Feature] Multidirectional scrolling
2 parents 07d755c + 2d00747 commit 7ccd87c

12 files changed

Lines changed: 1043 additions & 521 deletions

File tree

core/src/size.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::{Padding, Vector};
2-
use std::f32;
32

43
/// An amount of space in 2 dimensions.
54
#[derive(Debug, Clone, Copy, PartialEq, Eq)]

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ A bunch of simpler examples exist:
9999
- [`pick_list`](pick_list), a dropdown list of selectable options.
100100
- [`pokedex`](pokedex), an application that displays a random Pokédex entry (sprite included!) by using the [PokéAPI].
101101
- [`progress_bar`](progress_bar), a simple progress bar that can be filled by using a slider.
102-
- [`scrollable`](scrollable), a showcase of the various scrollbar width options.
102+
- [`scrollable`](scrollable), a showcase of various scrollable content configurations.
103103
- [`sierpinski_triangle`](sierpinski_triangle), a [sierpiński triangle](https://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle) Emulator, use `Canvas` and `Slider`.
104104
- [`solar_system`](solar_system), an animated solar system drawn using the `Canvas` widget and showcasing how to compose different transforms.
105105
- [`stopwatch`](stopwatch), a watch with start/stop and reset buttons showcasing how to listen to time.

examples/scrollable/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ publish = false
77

88
[dependencies]
99
iced = { path = "../..", features = ["debug"] }
10+
once_cell = "1.16.0"

examples/scrollable/screenshot.png

406 KB
Loading

0 commit comments

Comments
 (0)