From cfe54635b71771a3252e7143521f9ade57dd9247 Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Tue, 27 Jun 2023 10:29:10 +0800 Subject: [PATCH] fix: decimal logic duplicate --- packages/vtable/src/core/BaseTable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vtable/src/core/BaseTable.ts b/packages/vtable/src/core/BaseTable.ts index 1b515e61d..d1d4aa22b 100644 --- a/packages/vtable/src/core/BaseTable.ts +++ b/packages/vtable/src/core/BaseTable.ts @@ -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() {