mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
201e57cba1
commit
60bb02ad6a
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue