MCPcopy Create free account
hub / github.com/code100x/cms / handleGestureControl

Function handleGestureControl

src/components/VideoPlayer2.tsx:168–176  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

166
167 // Unified gesture handler
168 const handleGestureControl = (e: any) => {
169 const target = e.srcEvent.target as HTMLElement;
170 const isControlBar = target.closest('.vjs-control-bar');
171
172 if (!isControlBar && player.isFullscreen()) {
173 e.srcEvent.preventDefault();
174 e.srcEvent.stopPropagation();
175 }
176 };
177
178 // Configuring Hammer with proper types
179 const hammer = new Hammer.Manager(container, {

Callers 1

setupZoomFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected