chore:修复lockControl模式下能触发回退键的问题
This commit is contained in:
parent
e04b7fd9b2
commit
3db2604d95
2
main.js
2
main.js
@ -734,6 +734,7 @@ main.prototype.listen = function () {
|
||||
main.statusBar.image.rollback.onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
if (core.isReplaying()) return;
|
||||
if (core.status.lockControl) return;
|
||||
else if (main.core.isPlaying()) core.doSL("autoSave", "load");
|
||||
}
|
||||
|
||||
@ -741,6 +742,7 @@ main.prototype.listen = function () {
|
||||
main.statusBar.image.undoRollback.onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
if (core.isReplaying()) return;
|
||||
if (core.status.lockControl) return;
|
||||
else if (main.core.isPlaying()) core.doSL("autoSave", "reload");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user