fix(interaction): honor scroll cancellation and visible bounds

This commit is contained in:
drakezhang
2026-09-10 00:05:48 +08:00
parent 29355e041d
commit 61c97c9cb5
13 changed files with 955 additions and 189 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ pub struct ScrollToResult {
pub used_ref: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub used_selector: Option<String>,
/// Visible target bounds in top-level viewport CSS pixels.
/// Bounding rectangle of the element's visible border-box portion, in
/// top-level viewport CSS pixels, after ancestor and viewport clipping.
/// Partial visibility is sufficient. This is not an occlusion or hit test.
pub x: f64,
pub y: f64,
pub width: f64,