mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-10 10:00:48 +09:00
fix graph hover
This commit is contained in:
parent
91cf461656
commit
01f155f2f0
1 changed files with 5 additions and 2 deletions
7
dist/workers/graph.js
vendored
7
dist/workers/graph.js
vendored
|
@ -593,8 +593,12 @@ onMouseMove = ({ x, y }) => {
|
|||
|
||||
send('onMouseMove', { node: (d ? d.id : ''), x, y, k: transform.k });
|
||||
redraw();
|
||||
|
||||
clearTimeout(timeoutHover);
|
||||
|
||||
if (!d) {
|
||||
return;
|
||||
};
|
||||
|
||||
timeoutHover = setTimeout(() => {
|
||||
const d = getNodeByCoords(x, y);
|
||||
if (d) {
|
||||
|
@ -641,7 +645,6 @@ onAddNode = ({ target, sourceId }) => {
|
|||
data.edges.push({ type: EdgeType.Link, source: source.id, target: target.id });
|
||||
};
|
||||
|
||||
|
||||
target = Object.assign(target, {
|
||||
index: id,
|
||||
vx: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue