mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-22 22:14:25 +03:00
0 to reset zoom
This commit is contained in:
parent
3a235036b5
commit
97cd2416e8
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user