Throttle scrolling. LIKE A BAWS.

See #481
This commit is contained in:
John O'Nolan 2013-09-18 02:09:21 +01:00
parent 201e57cba1
commit 60bb02ad6a

View File

@ -316,7 +316,7 @@
'orientationchange': 'orientationChange'
},
syncScroll: _.debounce(function (e) {
syncScroll: _.throttle(function (e) {
var $codeViewport = $(e.target),
$previewViewport = $('.entry-preview-content'),
$codeContent = $('.CodeMirror-sizer'),
@ -330,7 +330,7 @@
// apply new scroll
$previewViewport.scrollTop(previewPostition);
}, 50),
}, 10),
showHelp: function () {
this.addSubview(new Ghost.Views.Modal({