Skip to content

Commit

Permalink
🎨 fix #1567
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 3, 2024
1 parent 1d80654 commit 6cb59cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

### v3.10.1 / 2024-01

* [IR 模式滚动时隐藏代码块语言提示](https://github.com/Vanessa219/vditor/issues/1567) `改进功能`
* [https://github.com/Vanessa219/vditor/issues/1565](https://github.com/Vanessa219/vditor/pull/1563) `开发重构`
* [⬆️ Bump ip from 1.1.5 to 1.1.9](https://github.com/Vanessa219/vditor/pull/1563) `开发重构`
* [WYSIWYG 模式下链接包含粗体无法打开](https://github.com/Vanessa219/vditor/issues/1560) `改进功能`
Expand Down
5 changes: 5 additions & 0 deletions src/ts/ir/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {expandMarker} from "./expandMarker";
import {highlightToolbarIR} from "./highlightToolbarIR";
import {input} from "./input";
import {processAfterRender, processHint} from "./process";
import {hidePanel} from "../toolbar/setToolbar";

class IR {
public range: Range;
Expand Down Expand Up @@ -74,6 +75,10 @@ class IR {
});
});

this.element.addEventListener("scroll", () => {
hidePanel(vditor, ["hint"]);
});

this.element.addEventListener("compositionstart", (event: InputEvent) => {
this.composingLock = true;
});
Expand Down

0 comments on commit 6cb59cd

Please sign in to comment.