Tagged articles
6 articles
Page 1 of 1
ELab Team
ELab Team
Nov 26, 2021 · Frontend Development

How to Build a High‑Performance, Multi‑Touch Canvas Drawing Board from Scratch

This article walks through creating a fully customizable, high‑performance HTML5 canvas drawing board for online teaching, covering devicePixelRatio handling, responsive layout, touch and mouse event processing, drawing pipelines, multi‑touch support, erasing modes, caching strategies, undo/redo, and brush extensions, all with complete React code examples.

CanvasUndo Redodrawing
0 likes · 33 min read
How to Build a High‑Performance, Multi‑Touch Canvas Drawing Board from Scratch
AI Code to Success
AI Code to Success
Apr 25, 2020 · Mobile Development

How Android’s GestureDetector Detects Double‑Tap and Other Gestures

This article explains the inner workings of Android’s GestureDetector class, detailing how it creates listeners, processes MotionEvent actions, schedules handler messages, and determines the timing and conditions for callbacks such as onDown, onShowPress, onSingleTapUp, onScroll, onLongPress, onFling, and double‑tap events.

Mobiledouble-tapgesture
0 likes · 13 min read
How Android’s GestureDetector Detects Double‑Tap and Other Gestures
Meitu Technology
Meitu Technology
May 10, 2018 · Frontend Development

Understanding Mobile Gesture Principles and Their Front-End Implementation

The article explains the mathematical foundations and front‑end implementation of five common mobile gestures—drag, pinch, rotate, single‑finger pinch, and single‑finger rotate—using native touch events, vector calculations, and matrix transformations, and provides a lightweight library that emits incremental gesture events for easy integration.

MobileVectorfrontend
0 likes · 16 min read
Understanding Mobile Gesture Principles and Their Front-End Implementation
Tencent Cloud Developer
Tencent Cloud Developer
Nov 21, 2017 · Mobile Development

Understanding the Android Input Event Flow: From Hardware to Application

The article details Android’s touch‑event pipeline, tracing how a physical press generates a GPIO interrupt, is read by Linux /dev/input drivers, passed through the kernel’s EventHub to the InputManagerService, dispatched by InputDispatcher, routed via WindowManagerService and InputChannel to ViewRootImpl, and finally delivered to the target View, helping developers debug and customize input handling.

AndroidInput EventsMobile Development
0 likes · 11 min read
Understanding the Android Input Event Flow: From Hardware to Application