提交 3a98cfd6 编写于 作者: C Christof Marti

Work around scrolling from zone widget (fixes #18929)

上级 4a90b5e2
......@@ -97,6 +97,13 @@ export class WalkThroughPart extends BaseEditor {
this.content.addEventListener('blur', e => {
this.editorFocus.reset();
});
this.content.addEventListener('focusin', e => {
// Work around scrolling as side-effect of setting focus on the offscreen zone widget (#18929)
if (e.target instanceof HTMLElement && e.target.classList.contains('zone-widget-container')) {
this.content.scrollTop = this.scrollbar.getScrollTop();
this.content.scrollLeft = this.scrollbar.getScrollLeft();
}
});
this.scrollbar = new DomScrollableElement(this.content, {
canUseTranslate3d: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册