Closed mipastgt closed 3 years ago
No, settings the cursor is supported. Technically JPro can't even distinguish whether the cursor is set by CSS or by code. I will test it now.
On a quick test, all CursorTypes listed at https://openjfx.io/javadoc/11/javafx.graphics/javafx/scene/Cursor.html are supported. I've also tested various browsers - safari, chrome, firefox, edge, they all seem to work. Which browser / os did you use? JPro currently set's the cursor-flag for the dom-nodes created by JPro. In rare cases, this hovering might be triggered at different positions (which might be browser dependent).
I use the latest version of Chrome on macOS.
I just modified my layout a little bit and made the sensitive gap a little bit wider and now, by magic, it works. It seems the browser is more sensitive than native FX which seems a bit strange to me but I can live with that. If you want to you can close this issue.
In my code I have something like a split pane. When the user moves the mouse over the sensitive area the mouse cursor should change to a H_RESIZE or V_RESIZE cursor. This does not work with JPro. The program functions correctly and via logging I can clearly see that the setCursor() method of Node gets called correctly too. Just the cursor image does not change.
Is explicitly setting the cursor in code not supported yet?