diff --git a/src/canvas/view/CanvasView.js b/src/canvas/view/CanvasView.js index ac37fee7e..f70411c44 100644 --- a/src/canvas/view/CanvasView.js +++ b/src/canvas/view/CanvasView.js @@ -70,7 +70,7 @@ export default Backbone.View.extend({ scroll && component.views.forEach(view => { - view._getFrame() !== currFrame && view.scrollIntoView(scroll); + view._getFrame() === currFrame && view.scrollIntoView(scroll); }); }, diff --git a/src/commands/view/SelectComponent.js b/src/commands/view/SelectComponent.js index e31521f38..46ee3f195 100644 --- a/src/commands/view/SelectComponent.js +++ b/src/commands/view/SelectComponent.js @@ -325,7 +325,7 @@ export default { */ select(model, event = {}) { if (!model) return; - this.editor.select(model, { scroll: {}, event }); + this.editor.select(model, { event }); this.initResize(model); },