We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d149e3 commit f6cec4fCopy full SHA for f6cec4f
1 file changed
index.html
@@ -287,16 +287,8 @@
287
}
288
});
289
290
- // Use scrollend event if supported, otherwise debounce scroll event
291
- if ('onscrollend' in this.editor) {
292
- this.editor.addEventListener('scrollend', () => this.updateFade());
293
- } else {
294
- let scrollTimeout;
295
- this.editor.addEventListener('scroll', () => {
296
- clearTimeout(scrollTimeout);
297
- scrollTimeout = setTimeout(() => this.updateFade(), 100);
298
- });
299
- }
+ // Update text area fade on scroll
+ this.editor.addEventListener('scroll', () => this.updateFade());
300
301
// Always focus on editor on keydown
302
window.addEventListener('keydown', () => {
0 commit comments