ReferenceFrame frame = FrameManager.getDefaultFrame();
Collection<Track> tracks = IGV.getInstance().getSelectedTracks();
if (tracks.size() == 1) {
try {
Track t = tracks.iterator().next();
if (!(t instanceof FeatureTrack || t instanceof VariantTrack)) {
//JOptionPane.showMessageDialog(IGV.getInstance(),
// "Track panning is not enabled for data tracks.");
return;
}