Youn Mélois and Jonathan Kelley
85b373deff
feat(html): add scroll method to MountedData ( #3722 )
...
* feat(html): add `scroll` method to MountedData
* feat(desktop): implement `scroll` method for DesktopElement
* feat(liveview): implement `scroll` method for LiveviewElement
* feat(web): implement `scroll` method for web_sys::Element
* docs(examples): add new example for `scroll` method
* fix(web): remove unncecessary f64 cast (clippy)
* fix(interpreter): return missing boolean from js
* docs(example): unwrap result instead of discarding its error
* docs(examples): create scroll restoring example on routing
* fix clippy
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com >
2025-05-07 12:45:47 -07:00
Youn Mélois
fd65c12bf5
fix(rsx): formatted attribute merging ( #3719 )
...
* test(rsx): add better tests for attributes merging
* fix(rsx): zero-lengthed source with non-empty segments is non-trivial
* refactor(rsx): use `is_empty` instead of `len() == 0` (clippy)
* fix(rsx): different asserts whether in release or not
2025-04-15 14:28:14 -07:00
Youn Mélois
c13fb06bfa
fix(interpreter): missing scrollTo boolean return value ( #3734 )
...
* fix(interpreter): missing scrollTo boolean return value
* docs(examples): unwrap scroll_to instead of discarding result values
2025-02-13 11:37:13 -08:00
Youn Mélois
ab91965cc0
fix onload and onerror parsing error ( #3707 )
...
regression error induced by 299b123 where serde default got removed from `load_error` attribute of `ImageData`.
```diff
pub struct ImageData {
- #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
- pub load_error: bool,
+ inner: Box<dyn HasImageData>,
}
// ...
+ struct SerializedImageData {
+ load_error: bool,
+ }
```
2025-02-07 16:08:00 -08:00
Youn Mélois and Jonathan Kelley
0ffa91df65
remove version pin on tao ( #3485 )
...
* remove version pin on tao
instead on including 0.31.0 as a breaking change, removing the pin upgrades tao automatically to 0.30.8
* prefer 0.30.8 as minimum tao
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com >
2025-01-02 14:59:54 -05:00