Commit 6abce152 authored by Marco Martin's avatar Marco Martin
Browse files

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
parent 48740664
Pipeline #185964 passed with stage
in 24 minutes and 42 seconds
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment