Browse Source

two finger tap right click

master
Maxim Stewart 1 year ago
parent
commit
c1279211bb
  1. BIN
      images/pic1.png
  2. 10
      src/core/static/css/main.css
  3. 6
      src/core/static/js/events.js

BIN
images/pic1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 21 KiB

10
src/core/static/css/main.css

@ -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;
}
}

6
src/core/static/js/events.js

@ -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…
Cancel
Save