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