Merge pull request #5206 from melloware/patch-1
Splitter: Fix keyboard repeat behaviorpull/5227/head
commit
51e7591e33
|
@ -158,14 +158,16 @@ export default {
|
||||||
this.onResize(event, step, true);
|
this.onResize(event, step, true);
|
||||||
},
|
},
|
||||||
setTimer(event, index, step) {
|
setTimer(event, index, step) {
|
||||||
this.clearTimer();
|
if (!this.timer) {
|
||||||
this.timer = setTimeout(() => {
|
this.timer = setInterval(() => {
|
||||||
this.repeat(event, index, step);
|
this.repeat(event, index, step);
|
||||||
}, 40);
|
}, 40);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
clearTimer() {
|
clearTimer() {
|
||||||
if (this.timer) {
|
if (this.timer) {
|
||||||
clearTimeout(this.timer);
|
clearInterval(this.timer);
|
||||||
|
this.timer = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onGutterKeyUp() {
|
onGutterKeyUp() {
|
||||||
|
|
Loading…
Reference in New Issue