setting click check threshold lower

This commit is contained in:
HF 2020-11-06 18:20:28 +01:00
parent 1e9307cc47
commit 9956309045

View File

@ -98,8 +98,8 @@ class PixelPlainterControls {
clickTabStartCoords[1] - clientY,
];
// thresholds for single click / holding
if (clickTabStartTime > Date.now() - 300
&& coordsDiff[0] < 10 && coordsDiff[1] < 10) {
if (clickTabStartTime > Date.now() - 250
&& coordsDiff[0] < 2 && coordsDiff[1] < 2) {
PixelPlainterControls.placePixel(
this.store,
this.viewport,
@ -205,8 +205,8 @@ class PixelPlainterControls {
clickTabStartCoords[1] - pageY,
];
// thresholds for single click / holding
if (clickTabStartTime > Date.now() - 300
&& coordsDiff[0] < 10 && coordsDiff[1] < 10) {
if (clickTabStartTime > Date.now() - 250
&& coordsDiff[0] < 2 && coordsDiff[1] < 2) {
const { store, viewport } = this;
PixelPlainterControls.placePixel(
store,