From 3e945dcc0c2ecae0ec88a4593044746f12e78eaf Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 14:28:45 +0530 Subject: [PATCH] if seeking beyond out, set position to out (not to in) --- static/js/embed/pandora.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index bde02c3e8..a77763695 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -141,7 +141,10 @@ Ox.load('UI', { if (!pandora.$player.options('paused')) { pandora.$player.togglePaused(); } - pandora.$player.options({position: options['in']}); + pandora.$player.options({ + position: data.position < options['in'] - 0.04 + ? options['in'] : options.out + }); } } Ox.extend(pandora.user, {