# Telegram Web A control source extracts

Upstream: https://github.com/Ajaxy/telegram-tt

Pinned revision: `28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80`.
Licence: GPL version 3 only; the complete unmodified text is distributed at
`../../COPYING` and `../telegram-motion/LICENSE`.
Attribution: Ajaxy and the Telegram Web A contributors. The selected files do
not contain separate individual copyright headers; no individual attribution is
invented. Modifications by EssayPilot on **2026-10-02**.

## Actual source reuse

- [src/components/ui/RippleEffect.tsx](https://github.com/Ajaxy/telegram-tt/blob/28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80/src/components/ui/RippleEffect.tsx): complete original in `upstream-RippleEffect.tsx`; `geometry.mjs` extracts the pointer-relative ripple position and half-width size calculation. Measurements and optional centered keyboard coordinates are passed in; Teact state/hooks and the 700 ms accumulating-wave presentation are omitted.
- [src/components/ui/Spinner.module.scss](https://github.com/Ajaxy/telegram-tt/blob/28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80/src/components/ui/Spinner.module.scss): complete original in `upstream-Spinner.module.scss`; the one-second linear infinite rotation and paused-background rule are adapted in `../../control-feedback.css`, with renamed selectors/keyframes. A CSS border replaces Telegram's themed image assets, and reduced-motion also disables rotation.

## Reviewed, not copied

- [src/components/ui/Button.tsx](https://github.com/Ajaxy/telegram-tt/blob/28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80/src/components/ui/Button.tsx) and its `.scss` were inspected. The whole button component depends on Teact, Telegram icons, localization and surrounding button conventions. Those dependencies, fast-click-on-mousedown handling and content-tree replacement are not imported.
- [src/components/ui/RippleEffect.scss](https://github.com/Ajaxy/telegram-tt/blob/28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80/src/components/ui/RippleEffect.scss) and [Spinner.tsx](https://github.com/Ajaxy/telegram-tt/blob/28ffcf710b15571e5a2f7bb3bdce3fc90fc8ec80/src/components/ui/Spinner.tsx) were inspected; no Teact renderer or Telegram stylesheet package is included.

The DOM event delegation, touch-scroll cancellation, small origin glow, pending
operation guard, accessibility attributes, success acknowledgement and cleanup
are original EssayPilot integration. No Telegram branding, network code or API
is included. Source reuse here is intentionally limited to the extracts above;
this is not a port of Telegram's full button control.
