mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-09 09:41:17 +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
|
||||
maskElement.style.cursor = "none";
|
||||
const mouseRangeBoxElement = createMouseRangeBox();
|
||||
mouseRangeBoxElement.addEventListener("contextmenu", (e) =>
|
||||
e.preventDefault()
|
||||
);
|
||||
mouseRangeBoxElement.addEventListener("mouseleave", moveLeaveHandler);
|
||||
document.body.appendChild(mouseRangeBoxElement);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user