We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb1a43 commit d2f2cf3Copy full SHA for d2f2cf3
1 file changed
index.html
@@ -444,14 +444,13 @@
444
}
445
446
updateFade() {
447
- console.log('updateFade called');
448
const editor = this.editor;
449
const top = this.fadeTop;
450
const bottom = this.fadeBottom;
451
const { scrollTop, scrollHeight, clientHeight } = editor;
452
453
top.style.opacity = scrollTop > 0 ? '1' : '0';
454
- bottom.style.opacity = scrollTop + clientHeight < scrollHeight ? '1' : '0';
+ bottom.style.opacity = Math.ceil(scrollTop + clientHeight) < scrollHeight ? '1' : '0';
455
456
457
// Actions
0 commit comments