Add comment for StickyContainer extension
This commit is contained in:
parent
69bce6aee5
commit
cdb28f956e
1 changed files with 4 additions and 0 deletions
|
@ -117,7 +117,11 @@ export default class ScrollPanel extends StickyContainer {
|
||||||
debuglog("Scroll event: offset now:", sn.scrollTop,
|
debuglog("Scroll event: offset now:", sn.scrollTop,
|
||||||
"_lastSetScroll:", this._lastSetScroll);
|
"_lastSetScroll:", this._lastSetScroll);
|
||||||
|
|
||||||
|
// Set the node and notify subscribers of the StickContainer
|
||||||
|
// By extending StickyContainer, we can set the scroll node to be that of the
|
||||||
|
// ScrolPanel to allow any `<Sticky>` children to be sticky, namely DateSeparators.
|
||||||
this.node = sn;
|
this.node = sn;
|
||||||
|
// Update subscribers - arbitrarily nested `<Sticky>` children
|
||||||
this.notifySubscribers(ev);
|
this.notifySubscribers(ev);
|
||||||
|
|
||||||
// Sometimes we see attempts to write to scrollTop essentially being
|
// Sometimes we see attempts to write to scrollTop essentially being
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue