emoji picker
parent
2ee38cfb05
commit
14f00c11bb
|
@ -1,4 +1,4 @@
|
|||
import Database from "./database.js";
|
||||
import Database from "./shx-npm-emoji-picker-element-database.js";
|
||||
|
||||
// via https://unpkg.com/browse/emojibase-data@6.0.0/meta/groups.json
|
||||
const allGroups = [
|
||||
|
@ -154,8 +154,8 @@ const detectEmojiSupportLevel = () => {
|
|||
// This helps especially with first load – we want to start pre-populating the database on the main thread,
|
||||
// and then wait for IDB to commit everything, and while waiting we run this check.
|
||||
promise = new Promise((resolve) =>
|
||||
rIC(() =>
|
||||
resolve(determineEmojiSupportLevel()) // delay so ideally this can run while IDB is first populating
|
||||
rIC(
|
||||
() => resolve(determineEmojiSupportLevel()) // delay so ideally this can run while IDB is first populating
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -801,11 +801,11 @@ function render(
|
|||
<div class="indicator-wrapper">
|
||||
<div
|
||||
class="indicator"
|
||||
style="transform:translateX(${/* istanbul ignore next */ (state.isRtl
|
||||
? -1
|
||||
: 1) *
|
||||
state.currentGroupIndex *
|
||||
100}%)"
|
||||
style="transform:translateX(${
|
||||
/* istanbul ignore next */ (state.isRtl ? -1 : 1) *
|
||||
state.currentGroupIndex *
|
||||
100
|
||||
}%)"
|
||||
></div>
|
||||
</div>
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue