Skip to content

Commit

Permalink
Use fully opaque pixels to determine if an emoji is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia authored Dec 25, 2024
1 parent 16978d0 commit 05d39c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emoji-mart/src/helpers/native-support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const isEmojiSupported = (() => {
let i = 0

// Search the first visible pixel
for (; i < count && !a[i + 3]; i += 4);
for (; i < count && a[i + 3] < 255; i += 4);

// No visible pixel
if (i >= count) {
Expand Down

0 comments on commit 05d39c1

Please sign in to comment.