From 4d6fb259fb478ac1e48bbcc0278c8adf325de9f2 Mon Sep 17 00:00:00 2001 From: "drop@waterwhite.sk" Date: Mon, 19 Sep 2022 16:48:56 +0200 Subject: [PATCH] Fix Customer Order History scroll to detail on Chrome --- js/history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/history.js b/js/history.js index bc55a81..ebd11fa 100644 --- a/js/history.js +++ b/js/history.js @@ -20,7 +20,9 @@ function showOrder(mode, var_content, file) { bindOrderDetailForm(); $blockOrderDetail.fadeIn(function() { - $.scrollTo($blockOrderDetail, 1000, {offset: -(50 + 10)}); + $('html, body').animate({ + scrollTop: $blockOrderDetail.offset().top + }, 1000); }); }); }