Adds the cursor API and attempts to mitigate the issue where dragging a row-resize or col-resize component 'flashes' the cursor. The moved component moves under the cursor or lags a frame behind it - normally causing the cursor to rapidly change, hence the need for a cursor lock. It doesn't seem perfect yet and probably needs further work or a cleaner solution.
Instead of locking, could there be some storage of the 'held item', such that the cursor can always use that components style, regardless of whether the cursor is technically over the component?
On an aesthetic note, I think buttons might have the wrong cursor by default - trying a few apps (firefox, gimp, krita), it seems the current button cursor is used very scarcely (not in toolbars, for instance) and the default OS cursor is used instead. I think text fields aren't styled to give a text cursor style too. I didn't modify that here as those styles are in haxe-ui core. Let me know if you want me to create an issue in Haxe-UI core for these cursor style changes.
Adds the cursor API and attempts to mitigate the issue where dragging a row-resize or col-resize component 'flashes' the cursor. The moved component moves under the cursor or lags a frame behind it - normally causing the cursor to rapidly change, hence the need for a cursor lock. It doesn't seem perfect yet and probably needs further work or a cleaner solution.
Instead of locking, could there be some storage of the 'held item', such that the cursor can always use that components style, regardless of whether the cursor is technically over the component?
On an aesthetic note, I think buttons might have the wrong cursor by default - trying a few apps (firefox, gimp, krita), it seems the current button cursor is used very scarcely (not in toolbars, for instance) and the default OS cursor is used instead. I think text fields aren't styled to give a text cursor style too. I didn't modify that here as those styles are in haxe-ui core. Let me know if you want me to create an issue in Haxe-UI core for these cursor style changes.