0 to reset zoom

This commit is contained in:
Jamie Wong
2018-01-07 08:36:11 -08:00
parent 3a235036b5
commit 97cd2416e8
+2
View File
@@ -550,6 +550,8 @@ export class FlamechartPanZoomView extends ReloadableComponent<FlamechartPanZoom
} else if (ev.key === '-' || ev.key === '_') {
this.zoom(new Vec2(width / 2, height / 2), 2)
ev.preventDefault()
} else if (ev.key === '0') {
this.zoom(new Vec2(width / 2, height / 2), 1e9)
} else if (ev.key === 'ArrowRight' || ev.key === 'd') {
this.pan(new Vec2(100, 0))
} else if (ev.key === 'ArrowLeft' || ev.key === 'a') {