Merge branch 'v2.x' of https://github.com/ckcz123/mota-js into v2.x
This commit is contained in:
commit
8d7a1f078f
@ -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 {
|
||||
|
||||
@ -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 () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user