Stop following data when we click
In the plotter, we were following the data automatically. This was
happening even while we were creating a zoom box. Which ended up being
really annoying since it would resize the window to track it. Once the
user clicks, just stop moving. It's probably what they wanted anyways.
Change-Id: I7396baa87e9d112ce13465a230bbe7b75f93b647
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/network/www/plotter.ts b/aos/network/www/plotter.ts
index 842f1b7..5e1c578 100644
--- a/aos/network/www/plotter.ts
+++ b/aos/network/www/plotter.ts
@@ -978,6 +978,11 @@
}
handleMouseDown(event: MouseEvent) {
+ for (let plot of this.linkedXAxes) {
+ plot.autoFollow = false;
+ }
+ this.autoFollow = false;
+
const button = transitionButton(event);
switch (button) {
case PAN_BUTTON: