Netflix / flamescope

FlameScope is a visualization tool for exploring different time ranges as Flame Graphs.
Apache License 2.0
3.02k stars 169 forks source link

drag and drop to select range #15

Open PetterS opened 6 years ago

PetterS commented 6 years ago

I think drag and drop to select range would feel more natural than clicking first start, then end.

At least that was the first thing I tried, even after looking at the image in the readme.

spiermar commented 6 years ago

I believe this is a personal preference, but open to add it as an option. Open to PRs.

brendangregg commented 6 years ago

It might be possible to support both (still not sure we want to, but..). So if you click and release a block without exiting it (no mouse-out events), then it's the normal style. If you click and then mouse-out before the release, it's the drag style. Only catch is that you couldn't click and drag one block -- that would require a double click.