Sane pointer coords for navigator tests drag simulations

This commit is contained in:
Mark Salsbery 2021-03-09 11:22:34 -08:00
parent 4f94de0ef6
commit bf0b7842ca

View File

@ -240,6 +240,8 @@
event.button = 0; event.button = 0;
$canvas.simulate( 'mouseup', event ); $canvas.simulate( 'mouseup', event );
event.clientX = offset.left - 1;
event.clientY = offset.top - 1;
event.relatedTarget = document.body; event.relatedTarget = document.body;
$canvas.simulate( 'mouseleave', event ); $canvas.simulate( 'mouseleave', event );
}; };