Skip to content

Commit

Permalink
fix(shape): Fix IE ClientRect does not have x and y (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze authored Sep 2, 2020
1 parent f569bfc commit 895461a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/promoter/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ type Payload = {
payload: SelectionItem | null;
};

export const getShape = ({ height, width, x, y }: DOMRect): Shape => ({
export const getShape = ({ height, left, top, width }: DOMRect): Shape => ({
height,
width,
x,
y,
x: left,
y: top,
});

export const setSelectionAction = createAction(
Expand Down

0 comments on commit 895461a

Please sign in to comment.