Skip to content

Commit

Permalink
fix: fix drag and drop hotspot
Browse files Browse the repository at this point in the history
The hotspot should be relative to the window item being dragged, the
scale applies to both.
  • Loading branch information
davidedmundson authored and romangg committed Oct 9, 2024
1 parent aa6eda4 commit ba96461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/effects/private/qml/WindowHeapDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ Item {
Drag.supportedActions: Qt.MoveAction
Drag.source: thumb.window
Drag.hotSpot: Qt.point(
thumb.activeDragHandler.centroid.pressPosition.x * thumb.targetScale,
thumb.activeDragHandler.centroid.pressPosition.y * thumb.targetScale)
thumb.activeDragHandler.centroid.pressPosition.x,
thumb.activeDragHandler.centroid.pressPosition.y)
Drag.keys: ["kwin-window"]

onXChanged: effect.checkItemDraggedOutOfScreen(thumbSource)
Expand Down

0 comments on commit ba96461

Please sign in to comment.