mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-12-24 08:28:56 -05:00
Increase paused typing timeout
This commit is contained in:
parent
4ec646aacb
commit
3904f584c8
@ -84,7 +84,7 @@ module.exports = function (client, app) {
|
|||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
if (!app.hasConnected) {
|
if (!app.hasConnected) {
|
||||||
//window.location = '/login';
|
window.location = '/login';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ module.exports = BasePage.extend({
|
|||||||
},
|
},
|
||||||
handleKeyUp: function (e) {
|
handleKeyUp: function (e) {
|
||||||
this.resizeInput();
|
this.resizeInput();
|
||||||
this.typingTimer = setTimeout(this.pausedTyping.bind(this), 3000);
|
this.typingTimer = setTimeout(this.pausedTyping.bind(this), 5000);
|
||||||
if (this.typing && this.$chatInput.val().length === 0) {
|
if (this.typing && this.$chatInput.val().length === 0) {
|
||||||
this.typing = false;
|
this.typing = false;
|
||||||
client.sendMessage({
|
client.sendMessage({
|
||||||
|
Loading…
Reference in New Issue
Block a user