You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys!
Please take a look at the gif below. I'm wondering, why the backgroundImageFn is called multiple times (idk how many emojis there are but probably one invocation per emoji?) on opening the Picker - feels pretty laggy (actually the image is being downloaded in the background). Furthermore, the backgroundImageFn gets invoked on Emoji hover and on Emoji mouseleave but on mouseleave with wrong parameters? I have set the sheetSize manually to 32 but on mouseleave the backgroundImageFn is called with a sheetSize of 64?
The project's dependencies are: Ngx Emoji Mart: 3.1.0
Angular: 9
<emoji-mart[backgroundImageFn]="backgroundImageFn"
(emojiSelect)="addEmoji(...)"
title="Wähle ein Emoji..."
sheetSize="32"
></emoji-mart>
public backgroundImageFn: Emoji["backgroundImageFn"]=(set,sheetSize)=>{console.log(set,sheetSize);return"assets/emoji_sheet_32.png";};
The text was updated successfully, but these errors were encountered:
Aleeexx
changed the title
Long loading time; invocation of backgroundImageFn per emoji?
Long loading time; invocation of backgroundImageFn per emoji? passes wrong parameter to backgroundImageFn
Aug 17, 2020
Hey guys!
Please take a look at the gif below. I'm wondering, why the
backgroundImageFn
is called multiple times (idk how many emojis there are but probably one invocation per emoji?) on opening the Picker - feels pretty laggy (actually the image is being downloaded in the background). Furthermore, thebackgroundImageFn
gets invoked on Emoji hover and on Emoji mouseleave but on mouseleave with wrong parameters? I have set thesheetSize
manually to 32 but on mouseleave thebackgroundImageFn
is called with asheetSize
of 64?The project's dependencies are:
Ngx Emoji Mart: 3.1.0
Angular: 9
The text was updated successfully, but these errors were encountered: