mbostock/d3 — pull request #766 by vogievetsky (2012-08-13 21:34:48+00:00)
Title: Fix for WebKit bad CTM when zoom != 1

A good place to test to see the diff is the mouse example.
Also I ran make so it changed d3.v2.js and the min... not sure what the pull request equate is for those files.
All the 'real' changes are in core/mouse.js

[from email]
1. I refactored your code a little bit so that there is a
d3_mouse_getScreenCTM function that just returns the 'fixed' CTM.

2. I added some extra code to set the html and body position to
'static' before doing the bug test. This is so that the test is more
robust - an insane person might have body or html not be at (0,0) and
have position not static.
Example:
d3.select('body')
.style('position', 'absolute')
.style('left', 0)
.style('top', '10px');

window.scrollTo(0, 10);

Add this to your code and it would trick the regular d3.mouse function
to think that bug44083 exists when it might not.