Skip to content

Commit

Permalink
Add Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Nov 30, 2024
1 parent b415309 commit 605ee72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/lib/popovers.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ function createNewKiwixPopoverCointainer (win, anchor, event) {
};
// Note that since Chromium 128 getBoundingClientRect() now returns zoom-adjusted values, but if this is the case,
// then currentCSSZoom will be defined as well, so we can adjust for this. Note that UWP also requires adjustment.
if (/UWP/.test(params.appType) || 'MSBlobBuilder' in window || anchor.currentCSSZoom) {
if (/UWP/.test(params.appType) || 'MSBlobBuilder' in window || anchor.currentCSSZoom || window.safari) {
linkRect.top = linkRect.top / zoomFactor;
linkRect.bottom = linkRect.bottom / zoomFactor;
linkRect.left = linkRect.left / zoomFactor;
Expand Down

0 comments on commit 605ee72

Please sign in to comment.