joerick / pyinstrument

🚴 Call stack profiler for Python. Shows you why your code is slow!
https://pyinstrument.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
6.58k stars 231 forks source link

Timeline view is difficult to scroll around on #347

Open asmeurer opened 6 days ago

asmeurer commented 6 days ago

I like the new timeline view, but the scrolling behavior is a little wonky. I think it needs to be much harder to zoom in and out. Ideally it would lock either horizontal scrolling or zooming, so that you can scroll the timeline without zooming at the same time. Maybe it should also require more of a vertical scroll to actually activate zooming.

Another idea would be to make scrolling on the timeline itself only do panning (this would also fix #346), and make it so that to zoom you have to scroll or drag on the top bar. This is a common UI for zooming a chart.

joerick commented 5 days ago

Can I ask what device are you using to scroll? A trackpad with two-finger gesture perhaps?

asmeurer commented 4 days ago

Yes, this is on a trackpad.