speed up emoji picker somewhat
This commit is contained in:
parent
c4352a1936
commit
99490cdb21
|
@ -150,7 +150,9 @@ const EmojiPicker = {
|
||||||
},
|
},
|
||||||
showPicker () {
|
showPicker () {
|
||||||
this.$refs.popover.showPopover()
|
this.$refs.popover.showPopover()
|
||||||
|
this.$nextTick(() => {
|
||||||
this.onShowing()
|
this.onShowing()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
hidePicker () {
|
hidePicker () {
|
||||||
this.$refs.popover.hidePopover()
|
this.$refs.popover.hidePopover()
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
class="emoji-groups"
|
class="emoji-groups"
|
||||||
:class="groupsScrolledClass"
|
:class="groupsScrolledClass"
|
||||||
:min-item-size="minItemSize"
|
:min-item-size="minItemSize"
|
||||||
|
:buffer="minItemSize"
|
||||||
:items="emojiItems"
|
:items="emojiItems"
|
||||||
:emit-update="true"
|
:emit-update="true"
|
||||||
@update="onScroll"
|
@update="onScroll"
|
||||||
|
|
|
@ -374,6 +374,8 @@ const instance = {
|
||||||
// should have been "pack" field, that would be more useful
|
// should have been "pack" field, that would be more useful
|
||||||
}).sort(byPackThenByName)
|
}).sort(byPackThenByName)
|
||||||
commit('setInstanceOption', { name: 'customEmoji', value: emoji })
|
commit('setInstanceOption', { name: 'customEmoji', value: emoji })
|
||||||
|
state.standardEmojiGroupList = null
|
||||||
|
state.standardEmojiList = null
|
||||||
} else {
|
} else {
|
||||||
throw (res)
|
throw (res)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue