Put the hostpot as the press position

we should drop the window on the desktop under the cursor,
not under the center of the thumbnail

BUG:454584
This commit is contained in:
Marco Martin 2022-06-06 11:39:28 +00:00
parent 4874066423
commit 6abce1529a

View file

@ -122,7 +122,9 @@ FocusScope {
Drag.active: thumb.activeDragHandler.active
Drag.source: thumb.client
Drag.hotSpot: Qt.point(width * 0.5, height * 0.5)
Drag.hotSpot: Qt.point(
thumb.activeDragHandler.centroid.pressPosition.x * thumb.activeDragHandler.targetScale,
thumb.activeDragHandler.centroid.pressPosition.y * thumb.activeDragHandler.targetScale)
states: [
State {