mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-14 05:21:42 +08:00
Merge pull request #47 from AkiChase/46-right-click-and-hold-functionality
fix(hotkey): contextmenu
This commit is contained in:
commit
0bb511a6c5
@ -834,6 +834,9 @@ function addSightShortcuts(
|
|||||||
// create box element
|
// create box element
|
||||||
maskElement.style.cursor = "none";
|
maskElement.style.cursor = "none";
|
||||||
const mouseRangeBoxElement = createMouseRangeBox();
|
const mouseRangeBoxElement = createMouseRangeBox();
|
||||||
|
mouseRangeBoxElement.addEventListener("contextmenu", (e) =>
|
||||||
|
e.preventDefault()
|
||||||
|
);
|
||||||
mouseRangeBoxElement.addEventListener("mouseleave", moveLeaveHandler);
|
mouseRangeBoxElement.addEventListener("mouseleave", moveLeaveHandler);
|
||||||
document.body.appendChild(mouseRangeBoxElement);
|
document.body.appendChild(mouseRangeBoxElement);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user