I would suggest that you could put the mouse cursor on a given area of ββthe screen if you did not use a real (system) mouse pointer.
For example, you can create an image that acts instead of your cursor, handle an event that, after detecting the mouseenter in your scene, sets the style on the system cursor to "none" ( sceneElement.style.cursor = 'none' ), then there will be a hidden image element, acting like a cursor, was anywhere you like, in the scene, based on a predefined axis / bounding box transformation.
Thus, no matter how you move the real cursor, your translation method will save your image cursor wherever you need it.
edit: example in jsFiddle using image view and forced mouse movement
Xaxis Jan 20 2018-11-21T00: 00
source share