fix(scroll): fast zoom issue on windows with ctrl

This commit is contained in:
moklick
2023-08-14 16:13:12 +02:00
parent e1b8dce981
commit 9654eee4fb
4 changed files with 28 additions and 8 deletions
+2
View File
@@ -173,3 +173,5 @@ export const getTransformForBounds = (
return [x, y, clampedZoom];
};
export const isMacOs = () => typeof navigator !== 'undefined' && navigator?.userAgent?.indexOf('Mac') >= 0;