提交 45c7f295 编写于 作者: J Joao Moreno

fixes #68050

上级 6f76a3b0
......@@ -815,12 +815,12 @@ class TreeNodeListMouseController<T, TFilterData, TRef> extends MouseController<
return super.onPointer(e);
}
if (!this.tree.openOnSingleClick && e.browserEvent.detail !== 2) {
const onTwistie = hasClass(e.browserEvent.target as HTMLElement, 'monaco-tl-twistie');
if (!this.tree.openOnSingleClick && e.browserEvent.detail !== 2 && !onTwistie) {
return super.onPointer(e);
}
const onTwistie = hasClass(e.browserEvent.target as HTMLElement, 'monaco-tl-twistie');
if (this.tree.expandOnlyOnTwistieClick && !onTwistie) {
return super.onPointer(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册