Add feature to ResizeNotifier to maintain isResizing state and use it to skip onScroll handling
This commit is contained in:
parent
6178b3c0e2
commit
cffe902504
9 changed files with 51 additions and 13 deletions
|
@ -31,6 +31,19 @@ export default class ResizeNotifier extends EventEmitter {
|
|||
// with default options, will call fn once at first call, and then every x ms
|
||||
// if there was another call in that timespan
|
||||
this._throttledMiddlePanel = throttle(() => this.emit("middlePanelResized"), 200);
|
||||
this._isResizing = false;
|
||||
}
|
||||
|
||||
get isResizing() {
|
||||
return this._isResizing;
|
||||
}
|
||||
|
||||
startResizing() {
|
||||
this._isResizing = true;
|
||||
}
|
||||
|
||||
stopResizing() {
|
||||
this._isResizing = false;
|
||||
}
|
||||
|
||||
_noisyMiddlePanel() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue