Sfoglia il codice sorgente

[curve] Fix key handle bug when moving past point

Clément Espeute 7 mesi fa
parent
commit
af51fc4c70
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      hide/comp/CurveEditor.hx

+ 1 - 1
hide/comp/CurveEditor.hx

@@ -1426,7 +1426,7 @@ class CurveEditor extends hide.comp.Component {
 							var abskx = xt(key.time);
 							var absky = yt(key.value);
 							if(next && lx < abskx || !next && lx > abskx)
-								 lx = kx;
+								 lx = abskx;
 							var ndt = ixt(lx) - key.time;
 							var ndv = iyt(ly) - key.value;
 							handle.dt = ndt;