diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2018-05-07 09:28:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 09:28:18 -0400 |
commit | 821bf34353a6baf97f7944379a6459afb16badae (patch) | |
tree | b73590cdb3332b5dd52265dd7d9dfd5c6d684e1b /src/css/support.js | |
parent | f8c1e9020c8fd0f0bb83019bfb12e9a7099599b2 (diff) | |
download | jquery-821bf34353a6baf97f7944379a6459afb16badae.tar.gz jquery-821bf34353a6baf97f7944379a6459afb16badae.zip |
CSS: Correctly detect scrollbox support with non-default zoom
Fixes gh-4029
Closes gh-4030
Diffstat (limited to 'src/css/support.js')
-rw-r--r-- | src/css/support.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/css/support.js b/src/css/support.js index dbb7ef7ce..12706f7e9 100644 --- a/src/css/support.js +++ b/src/css/support.js @@ -43,8 +43,10 @@ define( [ // Support: IE 9 only // Detect overflow:scroll screwiness (gh-3699) + // Support: Chrome <=64 + // Don't get tricked when zoom affects offsetWidth (gh-4029) div.style.position = "absolute"; - scrollboxSizeVal = div.offsetWidth === 36 || "absolute"; + scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12 || "absolute"; documentElement.removeChild( container ); |