two finger tap right click
This commit is contained in:
parent
64c3ccd48a
commit
c1279211bb
BIN
images/pic1.png
BIN
images/pic1.png
Binary file not shown.
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 21 KiB |
|
@ -51,6 +51,7 @@ input {
|
||||||
}
|
}
|
||||||
|
|
||||||
#rightClickBtn {
|
#rightClickBtn {
|
||||||
|
display: none; /* Hide button unless screen bigger than media query says it is */
|
||||||
border-style: dashed;
|
border-style: dashed;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
@ -71,17 +72,22 @@ input {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (min-width : 800px) {
|
@media only screen and (max-device-width: 800px) {
|
||||||
#sendKeysField {
|
#sendKeysField {
|
||||||
font-size: 300% !important;
|
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 {
|
body {
|
||||||
width: 800px;
|
width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#rightClickBtn {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,12 @@ $(function () {
|
||||||
|
|
||||||
// Touch events converted to mouse events
|
// Touch events converted to mouse events
|
||||||
function touchHandler(event) {
|
function touchHandler(event) {
|
||||||
|
if (event.type == "touchstart" && event.touches.length > 1) {
|
||||||
|
isClicking = false;
|
||||||
|
rightClick();
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
let touches = event.changedTouches,
|
let touches = event.changedTouches,
|
||||||
first = touches[0],
|
first = touches[0],
|
||||||
type = "";
|
type = "";
|
||||||
|
|
Loading…
Reference in New Issue