From febf485fb95aca24703b28d225dece9c1c27ca1c Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 8 Dec 2014 07:44:09 -0800 Subject: [PATCH] Pause marquee when we click the song title Fixes #100 --- winamp.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/winamp.js b/winamp.js index 4d2e6afd..f2cfc50d 100755 --- a/winamp.js +++ b/winamp.js @@ -182,6 +182,16 @@ function Winamp () { self.skin.visualizer.clear(); } + this.nodes.songTitle.onmousedown = function() { + self.textDisplay.pauseRegisterMarquee('songTitle'); + } + + this.nodes.songTitle.onmouseup = function() { + setTimeout(function () { + self.textDisplay.startRegisterMarquee('songTitle'); + }, 1000); + } + this.nodes.previous.onclick = function() { // Implement this when we support playlists }