Skip to content

Commit

Permalink
fix(core): wrong extreme value of draggable range
Browse files Browse the repository at this point in the history
  • Loading branch information
wumail authored and boyongjiong committed Sep 21, 2023
1 parent 16974e3 commit 46c3ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/model/TransformModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 46c3ce9

Please sign in to comment.