RFR: 8333919: dragViewOffsetX/dragViewOffsetY are ignored for the dragView image [v2]
Andy Goryachev
angorya at openjdk.org
Mon Aug 12 17:30:36 UTC 2024
On Mon, 12 Aug 2024 17:21:58 GMT, Jose Pereda <jpereda at openjdk.org> wrote:
>> I wanted to chime in, thought it might be unrelated:
>>
>> In the context of a docking framework, it is impossible to disable the cancel animation. We should have a way to disable it. The use case is when the user drags and drops a tab/pane outside of the dockable windows. In this case a new window should appear at the drop location, without the drag image animated back to the start position.
>>
>> Another thing that is impossible is to control the drag image: sometimes one needs a scaled icon, sometimes one wants the full content.
>>
>> These two issues basically prevent implementing a docking framework via DnD, one needs to use other solution, for example
>> https://github.com/andy-goryachev/FxDock
>
> I'm not sure if I follow, but about the cancel animation, do you mean that is not possible to disable it on macOS? Have you tested `session.animatesToStartingPositionsOnCancelOrFail`?
> As for the image, `DragBoard::setDragView` allows you setting any image that you need for the drag gesture, or am I missing something?
it's been a while - java8 time frame - back then I was unable to find a way to disable animation on cancel.
as for image - I was setting large image and fx tried to scale it to be smaller, I was unable to force it to show the unscaled full size image.
also, why does the drag image look fuzzy on mac retina?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1532#discussion_r1714146005
More information about the openjfx-dev
mailing list