mervick / emojionearea

Emoji Picker Plugin for jQuery
https://jsfiddle.net/mervick/1v03Lqnu/765/
MIT License
953 stars 257 forks source link

why sprite mest be emojioneSupportMode<3? #325

Closed huobazi closed 5 years ago

huobazi commented 5 years ago

Hi, I don't understand why emojionearea use sprite must be emojioneSupportMode<3 ?

https://github.com/mervick/emojionearea/blob/996872753bb380454d25c8e4568b4bcb6d4e8fc5/src/function/init.js#L36

see also: https://codepen.io/huobazi/pen/WYmwmG

mervick commented 5 years ago

Because Emojione removed sprite support in major releases die to the chrome bug and you can use sprite only in old releases

huobazi commented 5 years ago

@mervick i see the emojione assets repo https://github.com/emojione/emojione-assets/tree/master/sprites was commit on 4.0

and i create a demo https://codepen.io/huobazi/pen/WYmwmG

mervick commented 5 years ago

Seems they added png sprites, but there is no way to use custom height of emojis, and there is no way to set it to default size 20x20. They removed support of svg sprites, which was really awesome.

https://codepen.io/mervick/pen/yQmgrV