two finger tap right click

This commit is contained in:
Maxim Stewart 2020-07-01 20:53:18 -05:00
parent 64c3ccd48a
commit c1279211bb
3 changed files with 14 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -51,6 +51,7 @@ input {
}
#rightClickBtn {
display: none; /* Hide button unless screen bigger than media query says it is */
border-style: dashed;
border-width: 2px;
overflow: auto;
@ -71,17 +72,22 @@ input {
}
@media only screen and (min-width : 800px) {
@media only screen and (max-device-width: 800px) {
#sendKeysField {
font-size: 300% !important;
}
}
@media only screen and (min-width : 800px) {
/* nothing with screen size smaller than 8000px */
@media only screen and (min-device-width: 801px) {
body {
width: 800px;
margin: 0 auto;
}
#rightClickBtn {
display: inline-block;
}
}

View File

@ -65,6 +65,12 @@ $(function () {
// Touch events converted to mouse events
function touchHandler(event) {
if (event.type == "touchstart" && event.touches.length > 1) {
isClicking = false;
rightClick();
return ;
}
let touches = event.changedTouches,
first = touches[0],
type = "";