Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338204

Unify dragOffsetX/dragOffsetY behavior across platforms

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx
    • None
    • generic
    • linux, windows

      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.

            lkostyra Lukasz Kostyra
            lkostyra Lukasz Kostyra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: