summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starling/node-2d.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index 0e00d43..205bf41 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -404,6 +404,9 @@
(define-method (activate (node <node-2d>))
(set! (dirty-matrix? node) #t)
+ ;; Set the initial last position to the same as the initial position
+ ;; to avoid a brief flash where the node appears at (0, 0).
+ (vec2-copy! (position node) (last-position node))
(next-method))