Why Writing a Pinch-to-Zoom Component Is Harder Than You Think @ReactConferences
Why Writing a Pinch-to-Zoom Component Is Harder Than You Think  @ReactConferences
Uploaded December 2025 | Updated November 2026, 1 week ago
Talk: Oli Legat - "Why Writing a Pinch-to-Zoom Component Is Harder Than You Think", React Summit US 2025

At first glance, building a pinch-to-zoom and pan component in React seems simple. After all, the browser’s gesture events are already there. But when you need realistic, design-friendly motion and the ability to zoom axes independently, the problem gets much trickier. In this talk, I’ll share how we approached this challenge in our AG Charts React component: from the pitfalls of naïve implementations, to the realisation that pan and zoom are mathematically identical problems. You’ll see how some pen & paper algebra unlocked a precise and intuitive gesture system where X and Y scales update independently—kept in sync with React state—delivering smooth interactions beyond what you get in maps or images.

Watch the full talk with Q&A on GitNation website: gitnation.com/contents/why-writing-a-pinch-to-zoom-component-is-harder-than-you-think

Follow the link to watch the full version of all the conference talks, QnA’s with speakers and hands-on workshop recordings → gitnation.com/events/react-summit-us-2025

Timestamps:

00:00 Pinch-to-Zoom Component Challenge
01:23 Independent X and Y-axis Control
03:41 Unified Touch Interactions
06:10 Interpolated Touch Coordinates
08:56 Equation Implementation and Event Handling
10:28 React Integration and CSS Transform
11:58 Component Integration and Math Solver
13:51 CSS Transformation Calculation
14:42 Normalized Coordinate Space and Scale Calculation
15:37 Realistic Touch Gestures and Caveats
17:16 Pinch-to-Zoom Implementation Features

🔥 Want to hear talks like this live? Join us at React Summit 2026 in Amsterdam: https://reactsummit.com?utm_source=youtube&utm_medium=olilegat
💰 Supported by FocusReactive, headless CMS agency and Next.js experts: focusreactive.com

React Summit on X: twitter.com/ReactSummit
React Summit on Bluesky: https://bsky.app/profile/reactsummit.gitnation.org
React Summit on LinkedIn: linkedin.com/showcase/reactsummit
React Summit on Instagram: instagram.com/reactsummit
GitNation on TikTok: tiktok.com/@gitnationorg

#ReactSummit #ReactSummitUS #GitNation #WebDevelopment #TechTalks #WebDevConference #ReactSummitUS2025 #ReactJS
Why Writing a Pinch-to-Zoom Component Is Harder Than You ThinkClaude Code, Codex, Gemini – parallel agents in one editor | Zed live demo | Gaauwe RomboutsTwo years later, is React Compiler actually worth it? 😬 #shortsNext.js Is Changing Navigation Again - To Fix The Click Delay (16.3) | Aurora ScharffREACT IS BAD AT STATE #shortsReact’s New APIs Are Part Of One Bigger Idea #shorts
React Conferences by GitNation |

Why Writing a Pinch-to-Zoom Component Is Harder Than You Think

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER