Skip to content

fix: chart jumping and wobbling on window.devicePixelRatio !== 1#136

Draft
WofWca wants to merge 6 commits intojoewalnes:masterfrom
WofWca:fix-jumpiness-dpr-not-1
Draft

fix: chart jumping and wobbling on window.devicePixelRatio !== 1#136
WofWca wants to merge 6 commits intojoewalnes:masterfrom
WofWca:fix-jumpiness-dpr-not-1

Conversation

@WofWca
Copy link
Copy Markdown
Collaborator

@WofWca WofWca commented Oct 7, 2021

Fixes #151.

TODO:

  • Merge the branches it is based on
  • Address the TODO comments
  • Ensure pixelSnap works correctly for lineWidth % (2 * coordinatesPerPixel) === 0
  • Clean up

The issue is noticeable at `millisPerPixel` being between ~ 0.5 & 2.0 the size
of `requestAnimationFrame` period. Canvas image update period would be
inconsistent - some would last longer, some less, some would get skipped
altogether.
@WofWca WofWca force-pushed the fix-jumpiness-dpr-not-1 branch from 4ff71d9 to b6a6b0a Compare October 7, 2021 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: smudging at some fractional devicePixelRatio

1 participant