aces/brainbrowser — pull request #115 by PaulMougel (2014-08-26 13:20:02+00:00)
Title: Add zoom events

Related to #114.

Sample usage for the VolumeViewer:

```javascript
BrainBrowser.events.addEventListener("zoom", function(volume, panel) {
console.log(panel.zoom);
});
```

Sample usage for the SurfaceViewer:

```javascript
BrainBrowser.events.addEventListener("zoom", function(viewer, zoom) {
console.log(zoom);
});
```

----

I do however have an issue: the `zoom` level for the SurfaceViewer is always either 0.95 or 1.05. I never get any other value. The camera really zooms in or out, but the zoom level never changes…