From 1da4b9d942e4eb83f4111c9bfd0a10fb6bf1cc70 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 27 Apr 2017 19:21:14 +0200 Subject: [PATCH] frio: add comment note about sticky aside hack --- view/theme/frio/js/theme.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 62c45b3da..a335fffbd 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({