|
@@ -104,6 +104,13 @@ public class TimePanel extends JPanel {
|
|
|
controller.resetSimulation();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ timeSlider.addMouseMotionListener(new MouseAdapter() {
|
|
|
+ @Override
|
|
|
+ public void mouseDragged(MouseEvent e) {
|
|
|
+ controller.resetSimulation();
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
// Panel
|
|
|
timeBtnPanel.setBorder(null);
|