-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollback commit 73168a7, which didn't entirely solve the problem for Firefox and introduced new artifacts in WebKit browsers. The root problem is that Firefox positions the SVG image with subpixel accuracy (as evinced by getScreenCTM() returning subpixel values for the `e` and `f` attributes), and so even if the SVG internally positions images at even pixel boundaries, Firefox still has anti-aliasing artifacts. A proper solution to this problem is trickier than I thought, and since it's only a minor aesthetic problem I'm going to ignore it for now. The `wheel` control now triggers the wheel speed dampening if a single large wheelDelta is seen, rather than trying to compute a moving average of the wheel speed. This means that false positives are more annoying, but false negatives are significantly less likely, so this should be a significant improvement for Safari and Chrome. Lastly, there's a workaround for the broken getScreenCTM in WebKit browsers when the window is scrolled! Hooray.
- Loading branch information
Mike Bostock
committed
Aug 26, 2010
1 parent
a4960b4
commit 86a1b8a
Showing
6 changed files
with
105 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.