From 46c3ce9e238cc849025792dcd9083431fcf61a81 Mon Sep 17 00:00:00 2001 From: wumail <1059037014@qq.com> Date: Wed, 20 Sep 2023 17:38:30 +0800 Subject: [PATCH] fix(core): wrong extreme value of draggable range --- packages/core/src/model/TransformModel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/model/TransformModel.ts b/packages/core/src/model/TransformModel.ts index 3e0e4803a..1346f112f 100644 --- a/packages/core/src/model/TransformModel.ts +++ b/packages/core/src/model/TransformModel.ts @@ -27,8 +27,8 @@ export interface TransformInterface { const translateLimitsMap = { false: [-Infinity, -Infinity, Infinity, Infinity], true: [0, 0, 0, 0], - vertical: [Infinity, 0, -Infinity, 0], - horizontal: [0, Infinity, 0, -Infinity], + vertical: [-Infinity, 0, Infinity, 0], + horizontal: [0, -Infinity, 0, Infinity], }; export default class TransformModel implements TransformInterface {