change mobile color selection timing

This commit is contained in:
HF 2021-06-18 12:55:33 +02:00
parent dfdadd6f79
commit 259c4b3e3c

View File

@ -250,7 +250,7 @@ class PixelPlainterControls {
this.renderer, this.renderer,
this.clickTapStartCoords, this.clickTapStartCoords,
); );
}, 800); }, 600);
} }
} }
@ -267,7 +267,7 @@ class PixelPlainterControls {
clickTapStartCoords[1] - pageY, clickTapStartCoords[1] - pageY,
]; ];
// thresholds for single click / holding // thresholds for single click / holding
if (clickTapStartTime > Date.now() - 250 if (clickTapStartTime > Date.now() - 580
&& coordsDiff[0] < 2 && coordsDiff[1] < 2) { && coordsDiff[0] < 2 && coordsDiff[1] < 2) {
const { viewport } = this; const { viewport } = this;
const state = store.getState(); const state = store.getState();