Skip to content

Commit

Permalink
fix: 鼠标在 .protyle-scroll 上无法滚动文档
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Feb 3, 2025
1 parent 6b18913 commit da3ec54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/scroll/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Scroll {
this.parentElement.addEventListener("mousewheel", (event: WheelEvent) => {
if (protyle.contentElement.scrollTop + event.deltaY < protyle.contentElement.clientHeight) {
// 禁用滚动时会产生抖动 https://ld246.com/article/1666717094418
protyle.contentElement.style.width = (protyle.contentElement.clientWidth) + "px";
protyle.contentElement.style.width = (protyle.contentElement.offsetWidth) + "px";
protyle.contentElement.style.overflow = "hidden";
protyle.wysiwyg.element.setAttribute("data-top", protyle.contentElement.scrollTop.toString());
fetchPost("/api/filetree/getDoc", {
Expand Down

0 comments on commit da3ec54

Please sign in to comment.