From bf0b7842cac6a1fd2d30caa33c3ee07005686cce Mon Sep 17 00:00:00 2001 From: Mark Salsbery <> Date: Tue, 9 Mar 2021 11:22:34 -0800 Subject: [PATCH] Sane pointer coords for navigator tests drag simulations --- test/modules/navigator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/modules/navigator.js b/test/modules/navigator.js index 67bfbd43..e55c5400 100644 --- a/test/modules/navigator.js +++ b/test/modules/navigator.js @@ -240,6 +240,8 @@ event.button = 0; $canvas.simulate( 'mouseup', event ); + event.clientX = offset.left - 1; + event.clientY = offset.top - 1; event.relatedTarget = document.body; $canvas.simulate( 'mouseleave', event ); };