mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merge pull request #5206 from melloware/patch-1
Splitter: Fix keyboard repeat behavior
This commit is contained in:
commit
51e7591e33
1 changed files with 7 additions and 5 deletions
|
@ -158,14 +158,16 @@ export default {
|
|||
this.onResize(event, step, true);
|
||||
},
|
||||
setTimer(event, index, step) {
|
||||
this.clearTimer();
|
||||
this.timer = setTimeout(() => {
|
||||
this.repeat(event, index, step);
|
||||
}, 40);
|
||||
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…
Add table
Add a link
Reference in a new issue