mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19: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
|
|
@ -36,7 +36,7 @@ RowLayout {
|
|||
hoverEnabled: true
|
||||
|
||||
onClicked: function(mouseEvent) {
|
||||
var m = delegateItem.QsWindow.mapFromItem(delegateItem, mouseEvent.x, mouseEvent.y);
|
||||
var m = delegateItem.QsWindow.mapFromItem(delegateItem, delegateItem.width/2.0, delegateItem.height/2.0);
|
||||
var offset = popupLoader.item.width / 2.0;
|
||||
popupLoader.clicky = m.x - offset;
|
||||
if (openItemId == modelData.id) {
|
||||
|
|
|
|||
|
|
@ -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