Skip to content

Commit 15fa5c8

Browse files
author
Ives van Hoorne
committed
Fix anchor losing on refresh
1 parent 15dff24 commit 15fa5c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/Preview/FlyingContainer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ class FlyingContainer extends React.Component<Props, State> {
7777

7878
this.setState({ dragging: false });
7979

80-
this.setResizingStopped(horizontalPosChanged, verticalPosChanged);
80+
this.setResizingStopped(
81+
horizontalPosChanged,
82+
verticalPosChanged,
83+
false,
84+
false
85+
);
8186

8287
// We only set the bounds in the global store on stop, otherwise there are
8388
// other components constantly recalculating while dragging -> lag
@@ -111,6 +116,7 @@ class FlyingContainer extends React.Component<Props, State> {
111116
{ ...this.state }
112117
);
113118
}
119+
114120
this.fixPreviewInteractivity();
115121
}
116122
};

0 commit comments

Comments
 (0)