From: Ian Jackson Date: Wed, 30 Dec 2020 13:06:03 +0000 (+0000) Subject: this shows that webdriver is stabbing in wrong place X-Git-Tag: otter-0.2.0~69 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=96eedf1d0a30c81fdec0c163c6402cab0a3aa7bb;p=otter.git this shows that webdriver is stabbing in wrong place Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 43de0eae..58510e2e 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -622,7 +622,7 @@ function drag_add_piece(piece: PieceId, p: PieceInfo) { } function some_mousedown(e : MouseEvent) { - console.log('mousedown', e); + console.log('mousedown', e, e.clientX, e.clientY, e.target); if (e.button != 0) { return } if (e.altKey) { return } diff --git a/wdriver/wdt-simple.rs b/wdriver/wdt-simple.rs index 956510df..28e3a658 100644 --- a/wdriver/wdt-simple.rs +++ b/wdriver/wdt-simple.rs @@ -29,6 +29,8 @@ fn main(){ .release() .perform() .always_context("drag")?; + + w.synch()?; } debug!("finishing");