hoverpanel: log tap position vs panel bounds (debug)
This commit is contained in:
parent
5712f73237
commit
ceef5c538c
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ PanelWindow {
|
|||
onTapped: {
|
||||
const p = point.position;
|
||||
const pad = 8;
|
||||
console.log("HoverPanel tap ns=" + root.panelNamespace + " at=(" + p.x.toFixed(0) + "," + p.y.toFixed(0) + ") container=(" + panelContainer.x + "," + panelContainer.y + " " + panelContainer.width + "x" + panelContainer.height + ")");
|
||||
if (p.x < panelContainer.x - pad || p.x > panelContainer.x + panelContainer.width + pad || p.y < panelContainer.y - pad || p.y > panelContainer.y + panelContainer.height + pad)
|
||||
root.dismiss();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue