curtainsjs icon indicating copy to clipboard operation
curtainsjs copied to clipboard

On a small width screen, the first video stretched instead of cropped when playing it for the first time

Open rogierhofboer opened this issue 4 months ago • 0 comments

Describe the bug On a small width screen, the first video stretched instead of cropped when playing it for the first time

To Reproduce Steps to reproduce the behaviour:

  1. https://codepen.io/rogierhofboer/pen/NWQNNvb
  2. Make your browser screen width as small as possible.
  3. Refresh the browser (CTRL-R)
  4. The video is stretched
  5. Refresh the browser again (CTLR-R)
  6. Press next button
  7. Press prev button
  8. The video is cropped.

Expected behaviour The video is cropped, like the next one, and when playing the first one for the second time.

Screenshots First time (stretched): image

Second time (cropped): image

OS / Browser Happens in Chrome on Windows and in the Android Chrome Webview

rogierhofboer avatar Oct 03 '24 09:10 rogierhofboer