Compare commits
2 commits
fa6757b221
...
c05a23912f
Author | SHA1 | Date | |
---|---|---|---|
|
c05a23912f | ||
|
c0c1f84adb |
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
const HOLDING_THRESHOLD_MS = 300;
|
const HOLDING_THRESHOLD_MS = 300;
|
||||||
const SCROLL_X_DAMPENING = 0.02;
|
const SCROLL_X_DAMPENING = 0.02;
|
||||||
const SCROLL_Y_DAMPENING = 0.09;
|
const SCROLL_Y_DAMPENING = 0.09;
|
||||||
|
const MOVE_X_MULTIPLIER = 1.64;
|
||||||
|
const MOVE_Y_MULTIPLIER = 1.64;
|
||||||
|
|
||||||
class TouchpadController {
|
class TouchpadController {
|
||||||
constructor(connection) {
|
constructor(connection) {
|
||||||
|
@ -119,7 +121,7 @@ class TouchpadController {
|
||||||
this._sendSingleClick("right");
|
this._sendSingleClick("right");
|
||||||
} else {
|
} else {
|
||||||
if (
|
if (
|
||||||
this._sendRelativeMouseMovement(deltaX, deltaY)
|
this._sendRelativeMouseMovement(deltaX * MOVE_X_MULTIPLIER, deltaY * MOVE_Y_MULTIPLIER)
|
||||||
) {
|
) {
|
||||||
shouldMarkTouchesAsMoved = true;
|
shouldMarkTouchesAsMoved = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import "simple-keyboard/build/css/index.css";
|
|
||||||
import "./styles/main.css";
|
import "./styles/main.css";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue