mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +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;
|
||||
$canvas.simulate( 'mouseup', event );
|
||||
|
||||
event.clientX = offset.left - 1;
|
||||
event.clientY = offset.top - 1;
|
||||
event.relatedTarget = document.body;
|
||||
$canvas.simulate( 'mouseleave', event );
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user