#5866·photoprism

Lightbox: Show video controls and skip with double tap on touch devices

Author: photoprismciCreated Sep 29, 2026Updated Sep 29, 2026

As a mobile user watching a video in the lightbox, I want to show the controls and skip forward or back with taps, so that I can navigate the video without pausing it.

On touch devices, tapping the middle of a video starts or pauses playback. Tapping the left or right side of a video does nothing, so the only way to show the hidden controls without pausing is to tap near the top edge of the screen, which users are unlikely to discover. There is also no touch gesture to skip forward or back; the timeline slider is the only option. With a keyboard, the left and right arrow keys already skip 10 seconds.

Common video players (YouTube, Netflix, VLC) show or hide the controls with a single tap and skip 10 seconds with a double tap on the left or right side of the screen.

Technical Considerations

  • Swiping left and right must continue to navigate between items, so taps must only be handled when the pointer does not move.
  • Detecting a double tap delays the single-tap response by a few hundred milliseconds. The delay should not make showing the controls feel slow.
  • The skip direction must follow the layout direction in right-to-left languages, as it does for the arrow keys.
  • Photos, animations and 360° media must not change their current tap behavior.

Related discussion: #5848

Acceptance Criteria

  • A single tap on the left or right side of a playing video MUST show or hide the lightbox controls without pausing the video
  • A double tap on the left side of a video MUST skip back 10 seconds, and a double tap on the right side MUST skip forward 10 seconds (reversed in right-to-left layouts)
  • A tap in the middle of the video MUST still play or pause it
  • Swiping left or right MUST still navigate to the previous or next item
  • Tap behavior on photos, animations and 360° media MUST remain unchanged
  • Double tap to skip SHOULD also work while the video is paused
  • The player MAY briefly show a visual indicator (e.g. "+10 s") when skipping