mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Update wasm/web example
This commit is contained in:
@@ -17,7 +17,6 @@ This is the core library crate Emigui. It is fully platform independent without
|
||||
* [x] Vertical scrolling
|
||||
* [ ] Horizontal scrolling
|
||||
* [x] Scroll-wheel input
|
||||
* [ ] Scroll-wheel input in web verions
|
||||
* [x] Drag background to scroll
|
||||
* [ ] Kinetic scrolling
|
||||
* [ ] Menu bar (File, Edit, etc)
|
||||
@@ -25,6 +24,12 @@ This is the core library crate Emigui. It is fully platform independent without
|
||||
* [ ] Clipboard copy/paste
|
||||
* [ ] Color picker
|
||||
* [ ] Style editor
|
||||
* [ ] Table with resizable columns
|
||||
|
||||
### Web version:
|
||||
* [x] Scroll input
|
||||
* [ ] Add support for clicking links
|
||||
* [ ] Change to resize cursor on hover
|
||||
|
||||
### Animations
|
||||
Add extremely quick animations for some things, maybe 2-3 frames. For instance:
|
||||
|
||||
@@ -45,7 +45,9 @@ impl ExampleApp {
|
||||
));
|
||||
});
|
||||
|
||||
region.collapsing("Widgets", |region| {
|
||||
CollapsingHeader::new("Widgets")
|
||||
.default_open()
|
||||
.show(region, |region| {
|
||||
region.horizontal(Align::Min, |region| {
|
||||
region.add(label!("Text can have").text_color(srgba(110, 255, 110, 255)));
|
||||
region.add(label!("color").text_color(srgba(128, 140, 255, 255)));
|
||||
@@ -133,7 +135,7 @@ impl ExampleApp {
|
||||
});
|
||||
|
||||
CollapsingHeader::new("Scroll area")
|
||||
.default_open()
|
||||
// .default_open()
|
||||
.show(region, |region| {
|
||||
ScrollArea::default().show(region, |region| {
|
||||
region.add_label(LOREM_IPSUM);
|
||||
|
||||
Reference in New Issue
Block a user