I created an app that displays images. On left click (mouse down) it zooms in to 100% and you can drag the image (much larger than screen). If you release the left button the image is refitted into window again. The problem is that if the mouse cursor (made invisible while dragging) reaches the screen border the can't drag any further.
Is there any way to work around this? I see two options but don't know how to do it with java(fx):
- detect mouse movement (not cursor movement)
- reset the cursor position after each move step to start position
Is there a way to do this with java(fx)?
Are there any other ways? I don't want to loose the functionality on mouse down -> zoom in + drag, on mouse release refit image.