jQuery's outerWidth() and outerHeight() are known to be inaccurate with zoomed in/out pages.
To prevent this, I think you can use HTMLElement.offsetWidth and HTMLElement.offsetHeight.
Do you think you can fix this in a new version? I can open a PR to help.