fix: initial drag was borked
This commit is contained in:
parent
01242a6994
commit
e465db6e0e
|
@ -27,7 +27,7 @@ export default function Chat() {
|
||||||
down: ({pageX}) => {
|
down: ({pageX}) => {
|
||||||
if (ref.current) {
|
if (ref.current) {
|
||||||
origin = {
|
origin = {
|
||||||
left: parseInt(ref.current.style.left, 10),
|
left: parseInt(ref.current.style.left || 0, 10),
|
||||||
point: pageX,
|
point: pageX,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user