diff --git a/blots/scroll.js b/blots/scroll.js index dfaa8b278b..4d6ff5cb43 100644 --- a/blots/scroll.js +++ b/blots/scroll.js @@ -164,6 +164,10 @@ class Scroll extends ScrollBlot { if (!Array.isArray(mutations)) { mutations = this.observer.takeRecords(); } + mutations = mutations.filter(({ target }) => { + const blot = this.find(target, true); + return blot && blot.scroll === this; + }); if (mutations.length > 0) { this.emitter.emit(Emitter.events.SCROLL_BEFORE_UPDATE, source, mutations); }