mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: straight up center that shit idk i dont want mouse event
This commit is contained in:
parent
d218e71e17
commit
90606d1b6d
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ Item {
|
|||
hoverEnabled: true
|
||||
|
||||
onClicked: function(mouseEvent) {
|
||||
var m = root.QsWindow.mapFromItem(ma, mouseEvent.x, mouseEvent.y);
|
||||
var m = root.QsWindow.mapFromItem(ma, ma.width/2.0, ma.height/2.0);
|
||||
var offset = wrapperPopup.width / 2.0;
|
||||
wrapperPopup.clicky = m.x - offset;
|
||||
wrapperPopup.visible = !wrapperPopup.visible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue