Merge branch 'v2.x' of https://github.com/ckcz123/mota-js into v2.x

This commit is contained in:
ckcz123 2021-08-04 16:19:02 +08:00
commit 8d7a1f078f
2 changed files with 3 additions and 4 deletions

View File

@ -590,10 +590,6 @@ actions.prototype._sys_onup = function () {
// 长按
if (!core.status.lockControl && stepPostfix.length == 0 && core.status.downTime != null && new Date() - core.status.downTime >= 1000) {
clearTimeout(core.interval.onDownTimeout);
core.interval.onDownTimeout = null;
clearInterval(core.interval.onDownInterval);
core.interval.onDownInterval = null;
core.actions.longClick(posx, posy, 32 * posx + 16, 32 * posy + 16);
}
else {

View File

@ -673,6 +673,9 @@ ui.prototype.closePanel = function () {
core.status.event.selection = null;
core.status.event.ui = null;
core.status.event.interval = null;
// 清除onDownInterval
clearInterval(core.interval.onDownInterval);
core.interval.onDownInterval = 'tmp';
}
ui.prototype.clearUI = function () {