forked from missive/emoji-mart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(missive#872): When you slide the scroll bar very fast, the icon b…
…elow cannot be rendered.
- Loading branch information
liukai
committed
Mar 15, 2024
1 parent
21a2708
commit 7c9ccf8
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const agent: string = window.navigator.userAgent.toLowerCase() | ||
|
||
const isMacOs: boolean = agent.indexOf('mac') !== -1 | ||
const isChrome: boolean = agent.indexOf('chrome') > -1 | ||
const chromeVersion: number = isChrome ? parseInt(agent.match(/chrome\/(\d{2})/)[1]) : 0 | ||
|
||
export default { | ||
isMacOs, | ||
isChrome, | ||
chromeVersion, | ||
} |