//! Touch gesture emulation — tap and swipe
//!
//! cargo run --example touch_gestures
use browsing::browser::{Browser, BrowserProfile};
#[tokio::main]
async fn main() -> browsing::Result<()> {
let mut browser = Browser::new(BrowserProfile::default());
browser.start().await?;
let touch = browser.touch_manager()?;
// Emulate a tap at (100, 200)
touch.tap(100.0, 200.0).await?;
println!("Tap emitted at (100, 200)");
// Swipe from left to right
touch.swipe(50.0, 300.0, 250.0, 300.0, 5).await?;
println!("Swipe emitted");
Ok(())
}