setting click check threshold lower
This commit is contained in:
parent
1e9307cc47
commit
9956309045
|
@ -98,8 +98,8 @@ class PixelPlainterControls {
|
||||||
clickTabStartCoords[1] - clientY,
|
clickTabStartCoords[1] - clientY,
|
||||||
];
|
];
|
||||||
// thresholds for single click / holding
|
// thresholds for single click / holding
|
||||||
if (clickTabStartTime > Date.now() - 300
|
if (clickTabStartTime > Date.now() - 250
|
||||||
&& coordsDiff[0] < 10 && coordsDiff[1] < 10) {
|
&& coordsDiff[0] < 2 && coordsDiff[1] < 2) {
|
||||||
PixelPlainterControls.placePixel(
|
PixelPlainterControls.placePixel(
|
||||||
this.store,
|
this.store,
|
||||||
this.viewport,
|
this.viewport,
|
||||||
|
@ -205,8 +205,8 @@ class PixelPlainterControls {
|
||||||
clickTabStartCoords[1] - pageY,
|
clickTabStartCoords[1] - pageY,
|
||||||
];
|
];
|
||||||
// thresholds for single click / holding
|
// thresholds for single click / holding
|
||||||
if (clickTabStartTime > Date.now() - 300
|
if (clickTabStartTime > Date.now() - 250
|
||||||
&& coordsDiff[0] < 10 && coordsDiff[1] < 10) {
|
&& coordsDiff[0] < 2 && coordsDiff[1] < 2) {
|
||||||
const { store, viewport } = this;
|
const { store, viewport } = this;
|
||||||
PixelPlainterControls.placePixel(
|
PixelPlainterControls.placePixel(
|
||||||
store,
|
store,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user