We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe95c79 commit be8407aCopy full SHA for be8407a
.changeset/calm-eels-dream.md
@@ -0,0 +1,5 @@
1
+---
2
+'@dolphin/chrome-extension': patch
3
4
+
5
+feat: adjusting the scroll down threshold
apps/chrome-extension/src/scripts/download-lark-docx-as-markdown.ts
@@ -455,8 +455,12 @@ const prepare = async (): Promise<PrepareResult> => {
455
let direction = Direction.Down
456
const calculateDirection = () => {
457
const scrollHeight = docx.container?.scrollHeight ?? 0
458
+ const clientHeight = docx.container?.clientHeight ?? 0
459
- if (direction === Direction.Down && top > scrollHeight) {
460
+ if (
461
+ direction === Direction.Down &&
462
+ top > scrollHeight + 2 * clientHeight
463
+ ) {
464
return Direction.Up
465
}
466
0 commit comments