mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
parent
201e57cba1
commit
60bb02ad6a
@ -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…
Reference in New Issue
Block a user