Skip to content
Snippets Groups Projects
Commit 335697ac authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Susanne Moog
Browse files

[FEATURE] Add JavaScript event handling API

This patch adds API for event handling in JavaScript. The goal is to have
an easy-to-use event handling and delegation by shipping several event
strategies.

Debounce:
Debounces an event listener that is executed after the event happened,
either at the start or at the end. A debounced event listener is not
executed again until a certain amount of time has passed without it being
called.

RequestAnimationFrame:
Traps an event listener into the browser's native rAF API.

Throttle:
Throttles the event listener to be called only after a defined time
during the event's execution over time.

Resolves: #90471
Releases: master
Change-Id: I407f9b98a13f998bbf0879614002223b304389b0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63336


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
parent bcaecea9
Showing
with 630 additions and 243 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment