Skip to content

Commit

Permalink
Fix: Zoomed images's horizontal position wrong on Fur Affinity on 2k …
Browse files Browse the repository at this point in the history
…monitors (#1455)

* Check if max-width is not default or 100%

body100pct is not picking up Fur Affinity using max-width which makes hzWindow horizontal position wrong.

* Update hoverzoom.js

* Remove window.scrollY

* change || expression

* Update scope

* Revert "Update scope"

This reverts commit dc1a99a.

* Fix conflict mistakes
  • Loading branch information
LiliaDoe authored Nov 7, 2024
1 parent b3bdc0e commit 0f650c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hoverzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -3607,7 +3607,7 @@ var hoverZoom = {
fontSize(options.fontSize);

webSiteExcluded = null;
body100pct = (body.css('position') != 'static') || (body.css('padding-left') == '0px' && body.css('padding-right') == '0px' && body.css('margin-left') == '0px' && body.css('margin-right') == '0px');
body100pct = (body.css('position') != 'static') || (body.css('padding-left') == '0px' && body.css('padding-right') == '0px' && body.css('margin-left') == '0px' && body.css('margin-right') == '0px' && (body.css('max-width') == 'none' || body.css('max-width') == '100%'));
hz.pageGenerator = $('meta[name="generator"]').attr('content');
prepareImgLinks();
bindEvents();
Expand Down

0 comments on commit 0f650c6

Please sign in to comment.