Splitter: Fix keyboard repeat behavior
parent
9a29cbc990
commit
ecd5cb940d
|
@ -158,14 +158,16 @@ export default {
|
|||
this.onResize(event, step, true);
|
||||
},
|
||||
setTimer(event, index, step) {
|
||||
this.clearTimer();
|
||||
this.timer = setTimeout(() => {
|
||||
if (!this.timer) {
|
||||
this.timer = setInterval(() => {
|
||||
this.repeat(event, index, step);
|
||||
}, 40);
|
||||
}
|
||||
},
|
||||
clearTimer() {
|
||||
if (this.timer) {
|
||||
clearTimeout(this.timer);
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
},
|
||||
onGutterKeyUp() {
|
||||
|
|
Loading…
Reference in New Issue