New issue
Advanced search Search tips

Issue 602432 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Apr 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Exiting jwplayer fullscreen resets scroll position

Project Member Reported by bokan@chromium.org, Apr 11 2016

Issue description

Version: 51.0.2700.0
OS: Linux

What steps will reproduce the problem?
0. Visit https://developer.jwplayer.com/jw-player/demos/basic/add-download-button/
1. Shrink the window as necessary to scroll down so that the video player is at the top of the screen
3. Click the fullscreen button on the video player
4. Press "Escape", on the keyboard, to close the fullscreen

What is the expected output?
The scroll offset should be the same as before entering fullscreen

What do you see instead?
The scroll offset is reset to the top.

This is similar to  issue 142427 ; however, the fix for that did not help this case.
 

Comment 1 by bokan@chromium.org, Apr 16 2016

Status: WontFix (was: Assigned)
Did some investigation here. This is a problem with the player itself. They set overflow-y: hidden on the <body> element and remove it when the page gets restored. Unfortunately, this defeats our scroll restoration since when we try to set the old scroll position the body still has overflow-y: hidden and the scroll offset gets dropped.

I'm not sure why jwplayer adds overflow-y: hidden, possibly for quirks on other platforms or browsers. Removing the overflow-y style on body while the player is fullscreen allows the scroll to be restored on exiting fullscreen.

Comment 2 by tulio...@gmail.com, Apr 19 2016

Thanks for the feedback!

Sign in to add a comment