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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in New Issue