Follow-up to https://bugs.openjdk.org/browse/JDK-8333919
After above fix for macOS we noticed that offset behavior is not consistent across platforms. macOS will natively "snap" the drag image so that the mouse cursor is always above it, whereas Windows and Linux keep the provided offset and the drag image away from the mouse cursor.
This behavior should be unified - macOS has offset clamping introduced as a part of https://bugs.openjdk.org/browse/JDK-8333919 so Windows and Linux should also introduce clamping. This should also be documented in the Dragboard API (setDragViewOffsetX, setDragViewOffsetY and maybe also in setDragView). A test would also come in handy.
After above fix for macOS we noticed that offset behavior is not consistent across platforms. macOS will natively "snap" the drag image so that the mouse cursor is always above it, whereas Windows and Linux keep the provided offset and the drag image away from the mouse cursor.
This behavior should be unified - macOS has offset clamping introduced as a part of https://bugs.openjdk.org/browse/JDK-8333919 so Windows and Linux should also introduce clamping. This should also be documented in the Dragboard API (setDragViewOffsetX, setDragViewOffsetY and maybe also in setDragView). A test would also come in handy.
- relates to
-
JDK-8333919 [macOS] dragViewOffsetX/dragViewOffsetY are ignored for the dragView image
- Resolved