diff --git a/src/editor.js b/src/editor.js index 605f8953c..f59ef6e4d 100644 --- a/src/editor.js +++ b/src/editor.js @@ -172,15 +172,10 @@ Object.assign(Editor.prototype, require('./function-bind'), require('./events'), renderBlock: function(block) { this._renderInPosition(block.render().$el); this.hideAllTheThings(); - this.scrollTo(block.$el); block.trigger("onRender"); }, - scrollTo: function(element) { - $('html, body').animate({ scrollTop: element.position().top }, 300, "linear"); - }, - removeBlockDragOver: function() { this.$outer.find('.st-drag-over').removeClass('st-drag-over'); }, @@ -196,7 +191,6 @@ Object.assign(Editor.prototype, require('./function-bind'), require('./events'), if($blockBy && $blockBy.attr('id') !== $block.attr('id')) { this.hideAllTheThings(); $block["insert" + where]($blockBy); - this.scrollTo($block); } },