Skip to content

Commit

Permalink
fix: fix safari 15 consts
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Jul 16, 2022
1 parent c691403 commit a140e5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react-moveable/src/react-moveable/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export const IS_WEBKIT605 = IS_WEBKIT && (() => {

return res ? parseFloat(res[1]) < 605 : false;
})();
export const IS_SAFARI_ABOVE15 = agent.browser.majorVersion >= 15;
// export const IS_SAFARI =
export const IS_SAFARI_ABOVE15
= parseInt(agent.browser.webkitVersion, 10) >= 612
|| parseInt(agent.browser.version, 10) >= 15;

export const PREFIX = "moveable-";
export const MOVEABLE_CSS = `
{
Expand Down

0 comments on commit a140e5b

Please sign in to comment.