curtainsjs
curtainsjs copied to clipboard
On a small width screen, the first video stretched instead of cropped when playing it for the first time
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:
- https://codepen.io/rogierhofboer/pen/NWQNNvb
- Make your browser screen width as small as possible.
- Refresh the browser (CTRL-R)
- The video is stretched
- Refresh the browser again (CTLR-R)
- Press next button
- Press prev button
- 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):
Second time (cropped):
OS / Browser Happens in Chrome on Windows and in the Android Chrome Webview