From: Mike Taylor Date: Mon, 9 Mar 2015 15:58:58 +0000 (+0000) Subject: Towards a more sophisticated MKWS-58 fix. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=9ab0068d70b290fd8aca5b81ac6d84f07cc5d023;p=mkws-moved-to-github.git Towards a more sophisticated MKWS-58 fix. Add commented-out, over-complex mousemove event-handler. --- 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(); });