Fix longClick
This commit is contained in:
parent
dc736f1676
commit
77a9bd6bf1
@ -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) {
|
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);
|
core.actions.longClick(posx, posy, 32 * posx + 16, 32 * posy + 16);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -673,6 +673,9 @@ ui.prototype.closePanel = function () {
|
|||||||
core.status.event.selection = null;
|
core.status.event.selection = null;
|
||||||
core.status.event.ui = null;
|
core.status.event.ui = null;
|
||||||
core.status.event.interval = null;
|
core.status.event.interval = null;
|
||||||
|
// 清除onDownInterval
|
||||||
|
clearInterval(core.interval.onDownInterval);
|
||||||
|
core.interval.onDownInterval = 'tmp';
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.prototype.clearUI = function () {
|
ui.prototype.clearUI = function () {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user