Release Vulpes OS Preview 26 with Gecko 161.0 and Tundra 0.2.0
This commit is contained in:
parent
3a1fba4efe
commit
e241a42d2f
1 changed files with 1305 additions and 331 deletions
|
|
@ -231,25 +231,20 @@ bc.currentWindowGlobal.getActor('VulpesProbe').sendQuery('Evaluate', CODE)
|
|||
check=True,
|
||||
stdout=subprocess.DEVNULL,
|
||||
)
|
||||
subprocess.run(
|
||||
[
|
||||
"xdotool",
|
||||
"mousemove",
|
||||
"245",
|
||||
"630",
|
||||
"mousedown",
|
||||
"1",
|
||||
"mousemove",
|
||||
"245",
|
||||
"530",
|
||||
"mousemove",
|
||||
"245",
|
||||
"430",
|
||||
"mouseup",
|
||||
"1",
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
drag = evaluate("homescreen", """
|
||||
const panel = document.querySelector('#apps-panel > .scrollable');
|
||||
const rect = panel.getBoundingClientRect();
|
||||
return {x:Math.round(mozInnerScreenX + rect.x + rect.width * .55),
|
||||
y:Math.round(mozInnerScreenY + rect.y + rect.height * .75),
|
||||
distance:Math.round(rect.height * .35)};
|
||||
""")
|
||||
for action in (["mousemove", str(drag["x"]), str(drag["y"])], ["mousedown", "1"]):
|
||||
subprocess.run(["xdotool", *action], check=True)
|
||||
for n in range(1, 13):
|
||||
time.sleep(.025)
|
||||
subprocess.run(["xdotool", "mousemove", str(drag["x"]),
|
||||
str(drag["y"] - drag["distance"] * n // 12)], check=True)
|
||||
subprocess.run(["xdotool", "mouseup", "1"], check=True)
|
||||
expect(
|
||||
"trusted-touch-drag",
|
||||
wait(
|
||||
|
|
|
|||
Loading…
Reference in a new issue