Correctly map NaturalX/Y to scene coordinates
being naturalx something that needs to map to the actual geometry of the window which is in absolute coordinates but mapped to a view which geometry correspond to the one of one particular screen (plus the layout the thumbnail lives in has its own geometry in the scene)
This commit is contained in:
parent
7aad5df7d9
commit
871f8d0b91
1 changed files with 2 additions and 2 deletions
|
@ -169,8 +169,8 @@ FocusScope {
|
||||||
id: cell
|
id: cell
|
||||||
layout: expoLayout
|
layout: expoLayout
|
||||||
enabled: !thumb.hidden
|
enabled: !thumb.hidden
|
||||||
naturalX: thumb.client.x
|
naturalX: thumb.client.x - targetScreen.geometry.x - expoLayout.Kirigami.ScenePosition.x
|
||||||
naturalY: thumb.client.y
|
naturalY: thumb.client.y - targetScreen.geometry.y - expoLayout.Kirigami.ScenePosition.y
|
||||||
naturalWidth: thumb.client.width
|
naturalWidth: thumb.client.width
|
||||||
naturalHeight: thumb.client.height
|
naturalHeight: thumb.client.height
|
||||||
persistentKey: thumb.client.internalId
|
persistentKey: thumb.client.internalId
|
||||||
|
|
Loading…
Reference in a new issue