We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 527d75d commit 405299bCopy full SHA for 405299b
packages/bot-web-ui/src/components/draggable/draggable.tsx
@@ -58,6 +58,8 @@ export default function Draggable({
58
minHeight={height}
59
minWidth={minWidth}
60
onDrag={(e, data) => {
61
+ //we need these calculations since we no longer use the 'transform: translate(x, y)' property
62
+ //as it causes unexpected behaviour of Beta Chart styles & helps avoid bounce bug upon the first drag
63
data.node.style.left = `${data.lastX - first_drag_x + first_left + data.deltaX}px`;
64
data.node.style.top = `${data.lastY - first_drag_y + first_top + data.deltaY}px`;
65
}}
0 commit comments