Browse Source

Pull request #2256: 无JIRA任务 virtualgrouplist滚动跳动

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '19d2e59714cc8a65eda2a6fec34503b8b843a775':
  update
  无JIRA任务 virtualgrouplist滚动跳动
  更新
  BI-95902 fix: 兼容一下
es6
windy 3 years ago
parent
commit
da2e141b08
  1. 8
      src/base/list/virtualgrouplist.js

8
src/base/list/virtualgrouplist.js

@ -55,8 +55,16 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, {
mounted: function () {
var self = this, o = this.options;
this._populate();
this._debounceRelease = BI.debounce(function () {
self._scrollLock = false;
}, 30);
this.element.scroll(function (e) {
if (self._scrollLock === true) {
return;
}
self._scrollLock = true;
o.scrollTop = self.element.scrollTop();
self._debounceRelease();
self._calculateBlocksToRender();
});
BI.ResizeDetector.addResizeListener(this, function () {

Loading…
Cancel
Save