From: fabrixxm Date: Thu, 27 Apr 2017 17:21:14 +0000 (+0200) Subject: frio: add comment note about sticky aside hack X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1da4b9d942e4eb83f4111c9bfd0a10fb6bf1cc70;p=friendica.git frio: add comment note about sticky aside hack --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 62c45b3da2..a335fffbdb 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -317,7 +317,15 @@ $(document).ready(function(){ }); /* - * Sticky aside on page scroll, only on desktop + * Sticky aside on page scroll + * We enable the sticky aside only when window is wider than + * 976px - which is the maximum width where the aside is shown in + * mobile style - because on chrome-based browsers (desktop and + * android) the sticky plugin in mobile style causes the browser to + * scroll back to top the main content, making it impossible + * to navigate. + * A side effect is that the sitky aside isn't really responsive, + * since is enabled or not at page loading time. */ if ($(window).width() > 976) { $("aside").stick_in_parent({