fix: decimal logic duplicate

This commit is contained in:
fangsmile 2023-06-27 10:29:10 +08:00
parent 9c7bf33663
commit cfe54635b7

View File

@ -1528,14 +1528,14 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
return this.stateManeger.scroll.verticalBarPos;
}
set scrollTop(scrollTop: number) {
this.stateManeger.setScrollTop(Math.ceil(scrollTop));
this.stateManeger.setScrollTop(scrollTop);
}
get scrollLeft(): number {
return this.stateManeger.scroll.horizontalBarPos;
}
set scrollLeft(scrollLeft: number) {
this.stateManeger.setScrollLeft(Math.ceil(scrollLeft));
this.stateManeger.setScrollLeft(scrollLeft);
}
getScrollLeft() {