Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use keypress events for arrow zooming.
The plus and minus key codes are not consistent across browsers. The char codes appear to be more consistent, so we use those; note that this also has the side-effect of enabling repeated zooming if the plus or minus key is held down. This makes zooming more consistent with the current (custom repeating) pan behavior.
- Loading branch information
Mike Bostock
committed
Aug 31, 2010
1 parent
3f591e7
commit a9137c1
Showing
4 changed files
with
79 additions
and
104 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.