From 9ab0068d70b290fd8aca5b81ac6d84f07cc5d023 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 9 Mar 2015 15:58:58 +0000 Subject: [PATCH] Towards a more sophisticated MKWS-58 fix. Add commented-out, over-complex mousemove event-handler. --- src/mkws-widget-main.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 3986c16..c18b21b 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -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(); }); -- 1.7.10.4