From 659fa1c1aede257792da9491a919cb6e73e8459e Mon Sep 17 00:00:00 2001 From: sindri <33976067+isarsindri@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:05:12 +0100 Subject: [PATCH] Refactor tween handling with tweenFactory --- src/lib.luau | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.luau b/src/lib.luau index 46b8a4a..8dbce91 100644 --- a/src/lib.luau +++ b/src/lib.luau @@ -25,7 +25,8 @@ local flags = require "./flags" local draggable = require "./draggable" local toggle = require "./toggle" local dropdown = require "./dropdown" -local tween = require "./tween" +local tweenFactory = require "./tween" +local tween = tweenFactory(action, cleanup) local sliderFactory = require "./slider" local slider = sliderFactory(create, source, action, cleanup) @@ -81,11 +82,11 @@ local vide = { -- animations spring = spring, - tween = tween, -- actions action = action, changed = changed, + tween = tween, -- flags strict = (nil :: any) :: boolean,