mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
fix(interaction): honor scroll cancellation and visible bounds
This commit is contained in:
1 parent
29355e041d
commit
61c97c9cb5
13 files changed
+955
-189
No files matched your search
@@ -41,7 +41,7 @@
|
||||
"format": "double"
|
||||
},
|
||||
"x": {
|
||||
"description": "Visible target bounds in top-level viewport CSS pixels.",
|
||||
"description": "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.",
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user