mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 21:26:10 +03:00
Sane pointer coords for navigator tests drag simulations
This commit is contained in:
parent
4f94de0ef6
commit
bf0b7842ca
@ -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 );
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user