Skip to content

Commit

Permalink
Disable the horizontal mouse wheel in the Perfetto view.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Jul 26, 2019
1 parent 10edbef commit 7b6edd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gapic/src/main/com/google/gapid/perfetto/TraceView.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public TraceView(Composite parent, Models models, Widgets widgets) {
}
}
});
canvas.addListener(SWT.MouseHorizontalWheel, e -> {
e.doit = false;
});
canvas.getHorizontalBar().addListener(SWT.Selection, e -> {
TimeSpan trace = state.getTraceTime();
int sel = canvas.getHorizontalBar().getSelection();
Expand Down

0 comments on commit 7b6edd1

Please sign in to comment.