Skip to content

Commit

Permalink
Fix bug when scrolling on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
prasser committed Oct 15, 2015
1 parent b0a7674 commit ccc1bce
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.ControlAdapter;
import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.SelectionAdapter;
Expand Down Expand Up @@ -114,6 +116,12 @@ public void widgetDisposed(DisposeEvent arg0) {
}
}
});
this.root.getHorizontalBar().addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent arg0) {
root.redraw();
}
});

root.pack();
}
Expand Down

0 comments on commit ccc1bce

Please sign in to comment.