(e: any)
| 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, { |