Regions check returns false negative if page is zoomed (in/out) #940

Closed
mibalan opened this Issue May 22, 2013 · 1 comment

Projects

None yet

2 participants

@mibalan
Contributor
mibalan commented May 22, 2013

No description provided.

@stucox
Member
stucox commented May 25, 2013

Looks like a rounding funny, like we saw in #760...

image

wrapping the delta calculation in a parseInt() seems to fix it. I'll raise a PR.

There might be a few places where we fall victim to this kind of thing tbh.

@stucox stucox closed this in fcef368 May 25, 2013
@SlexAxton SlexAxton added a commit to SlexAxton/Modernizr that referenced this issue Jun 3, 2013
@SlexAxton SlexAxton Merge branch 'master' of github.com:Modernizr/Modernizr
* 'master' of github.com:Modernizr/Modernizr: (23 commits)
  add opus detection - fixes #699
  Added note re. Chrome occassionally failing transforms3d detect
  updated/fixes #696 - adds preload and loop checks for video and audio elements
  Wrapping cssregions detect delta calculation in a parseInt fixes #940
  Removed `touch` alias for `Modernizr.touchevents` - enough is enough
  fix for #520 - check for chrome frame in download test
  update async warning
  rearrange test file structure, added warnings about test size
  Added a warning to `csshyphens` metadata re. its size
  Positioning #modernizr absolutely to enable more precise offsetLeft check
  whoops
  updating PR
  fixed another typo, added test/video as an AMD dependency
  check for video support first, only set src of the shortest supported video type, change body to docElement
  bail out of test early if autoplay isn't detected on the video element
  Fixed test for :checked pseudo-selector
  Update LICENSE
  optimize test arrangement, fix typo
  added escape hatch for browsers that don't support autoplay at all
  updates for @stucox
  ...
4ccf474
@patrickkettner patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
@stucox stucox Wrapping cssregions detect delta calculation in a parseInt fixes #940 3724f33
@patrickkettner patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
@SlexAxton SlexAxton Merge branch 'master' of github.com:Modernizr/Modernizr
* 'master' of github.com:Modernizr/Modernizr: (23 commits)
  add opus detection - fixes #699
  Added note re. Chrome occassionally failing transforms3d detect
  updated/fixes #696 - adds preload and loop checks for video and audio elements
  Wrapping cssregions detect delta calculation in a parseInt fixes #940
  Removed `touch` alias for `Modernizr.touchevents` - enough is enough
  fix for #520 - check for chrome frame in download test
  update async warning
  rearrange test file structure, added warnings about test size
  Added a warning to `csshyphens` metadata re. its size
  Positioning #modernizr absolutely to enable more precise offsetLeft check
  whoops
  updating PR
  fixed another typo, added test/video as an AMD dependency
  check for video support first, only set src of the shortest supported video type, change body to docElement
  bail out of test early if autoplay isn't detected on the video element
  Fixed test for :checked pseudo-selector
  Update LICENSE
  optimize test arrangement, fix typo
  added escape hatch for browsers that don't support autoplay at all
  updates for @stucox
  ...
55a7a5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment