mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 10:03:28 +00:00
fix: decimal logic duplicate
This commit is contained in:
parent
9c7bf33663
commit
cfe54635b7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user