diff --git a/www/code/inner.js b/www/code/inner.js index 2eb433c01..d74513035 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -257,8 +257,8 @@ define([ 'class': 'cp-splitter' }).appendTo($previewContainer); - $preview.on('scroll', function() { - splitter.css('top', $preview.scrollTop() + 'px'); + $previewContainer.on('scroll', function() { + splitter.css('top', $previewContainer.scrollTop() + 'px'); }); var $target = $codeMirrorContainer;