From 8c479190738c7cb899052199673b14f397e0314e Mon Sep 17 00:00:00 2001
From: user <user@user-ThinkPad-X60.(none)>
Date: Tue, 16 Jun 2015 22:41:50 -0400
Subject: [PATCH] added comment about weird treatment of scalar selection
 rectangles

---
 pd/nw/pdgui.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 3db15e1f2..5efb37b19 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -2873,7 +2873,10 @@ function gui_scalar_draw_select_rect(cid, tag, state, x1, y1, x2, y2, basex, bas
     // from the coords below
     // Additionally, we're not actually drawing the rect here.  It's drawn
     // as part of the scalar_vis function.  We're merely changing its coords
-    // and size
+    // and size.
+    // Finally, we have this awful display attribute toggling in css
+    // for selected borders because somehow calling properties on a graph
+    // triggers this function.  I have no idea why it does that.
     //gui_post("drawselectrect: " + x1 + " " + y1 + " " + x2 + " " + y2 + " " + basex + " " + basey);
     var g = get_gobj(cid, tag);
     var b = g.querySelector('.border');
-- 
GitLab