You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found taht this behaviour (which is still present) turns out when the "responsive" option is turned on, and become very annoying on mobile devices (specially in Google Chrome, where scrolling the page causes the url bar to appear and disappear, and this generate a lot of window.resize events).
I've worked around it by replacing the line 4731 ($container[ m ]( 'auto' );) in the function Galleria.prototype.resize, with these:
if( m == 'width' )$container[ m ]( $container.parent().innerWidth() );
if( m == 'height' )$container[ m ]( $container.parent().innerHeight() );
Tested and reproduced in 3/3 browser tests on Mac 10.6.8:
Safari 5.1.9
Chrome 30.0.1599.14 beta
Firefox 23.0.1
Steps to reproduce:
Expected:
Browser window's scroll position remains unchanged.
Actual:
Browser window's scroll position changes to 0. User sees top of page.
The text was updated successfully, but these errors were encountered: