We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8913ecd commit aee78a4Copy full SHA for aee78a4
src/autoscroll.ts
@@ -12,6 +12,7 @@ export class AutoScroll extends Behavior {
12
samePosCount: number;
13
14
origPath: string;
15
+ lastMsg = "";
16
17
constructor(autofetcher: AutoFetcher) {
18
super();
@@ -37,6 +38,14 @@ export class AutoScroll extends Behavior {
37
38
return this.currScrollPos() < Math.max(scrollElem.clientHeight, scrollElem.scrollHeight);
39
}
40
41
+ debug(msg: string) {
42
+ if (this.lastMsg === msg) {
43
+ return;
44
+ }
45
+ super.debug(msg);
46
+ this.lastMsg = msg;
47
48
+
49
hasScrollEL(obj) {
50
try {
51
return !!self["getEventListeners"](obj).scroll;
0 commit comments