Towards a more sophisticated MKWS-58 fix.
authorMike Taylor <mike@indexdata.com>
Mon, 9 Mar 2015 15:58:58 +0000 (15:58 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 9 Mar 2015 15:58:58 +0000 (15:58 +0000)
Add commented-out, over-complex mousemove event-handler.

src/mkws-widget-main.js

index 3986c16..c18b21b 100644 (file)
@@ -159,7 +159,7 @@ mkws.registerWidgetType('records', function() {
   }
 
   this.team.queue("records").subscribe(setRecordData);
-  
+
   this.node.mouseenter(function() {
     that.info("freezing display records");
     that.node.css('opacity', 0.5);
@@ -173,6 +173,23 @@ mkws.registerWidgetType('records', function() {
     refreshRecordData();
   });
 
+/*
+  var m_busy = false;
+  this.node.mousemove(function() {
+    if (!m_busy) {
+      m_busy = true;
+      that.info("making semi-transparent in 0.001 s");
+      that.node.fadeTo(1, 0.5, function() {
+        that.info("making opaque in 2 s");
+        that.node.fadeTo(2000, 1, function() {
+          that.info("done making opaque");
+          m_busy = false;
+        });
+      });
+    }
+  });
+*/
+
   that.autosearch();
 });