Debouncing Animate function to avoid frequent invocations#589
Open
suresh-gangumalla wants to merge 5 commits intolightning-js:devfrom
Open
Debouncing Animate function to avoid frequent invocations#589suresh-gangumalla wants to merge 5 commits intolightning-js:devfrom
suresh-gangumalla wants to merge 5 commits intolightning-js:devfrom
Conversation
changes to any property transition object like delay, duration, vaule, ease are subject to invocation of animate function. when morethan single property get updated then transition subjected to creation of multiple animation objects which are neccessary so added debounce with configurable timeout so that it can reduce number of animation function invocations. user can configure animateDebounceDelay in settings to alter delay timeout in ms, the default value is 50ms Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ❌ FAILEDRun at: 2026-01-30T09:25:11.282Z Summary: Error Output: |
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ❌ FAILEDRun at: 2026-01-30T09:35:34.735Z Summary: Error Output: |
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ✅ PASSEDRun at: 2026-01-30T09:38:56.119Z Summary: |
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ✅ PASSEDRun at: 2026-01-30T10:36:31.905Z Summary: |
michielvandergeest
requested changes
Jan 30, 2026
src/engines/L3/element.js
Outdated
Comment on lines
231
to
235
| /** | ||
| * Debounce delay for animate function (initialized on first use). | ||
| * @type {number|null} | ||
| */ | ||
| let animateDebounceDelay = null |
Collaborator
There was a problem hiding this comment.
don't need this I think?
Collaborator
Author
There was a problem hiding this comment.
Yes, as we are always going with 0 ms timeout we don't need this. Removed in latest commit.
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ✅ PASSEDRun at: 2026-02-02T05:29:07.623Z Summary: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
changes to any property in transition object like delay, duration, vaule, ease are subject to invocation of animate function. when morethan single property get updated then transition subjected to creation of multiple animation objects which are neccessary so added debounce with configurable timeout so that it can reduce number of animation function invocations.
user can configure animateDebounceDelay in settings to alter delay timeout in ms, the default value is 50ms