瀏覽代碼

HUE-6208 [core] The scroll left anchor should reset the horizontal scrollbar position

Enrico Berti 8 年之前
父節點
當前提交
f9a1746
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/static/desktop/js/jquery.scrollleft.js

+ 1 - 0
desktop/core/src/desktop/static/desktop/js/jquery.scrollleft.js

@@ -124,6 +124,7 @@
     $(document).on("click", "#jHueScrollLeftAnchor", function (event) {
       if ($("#jHueScrollLeftAnchor").data("caller") != null) {
         $("#jHueScrollLeftAnchor").data("caller").animate({scrollLeft: 0}, 300, function () {
+          $(document).find("[jHueLeftScrollified='true']").trigger('scroll_update');
           if ($(document).find("[jHueLeftScrollified='true']").not($("#jHueScrollLeftAnchor").data("caller")).is("body") && $(window).scrollLeft() > _this.options.threshold) {
             $("#jHueScrollLeftAnchor").data("caller", $("body, html"));
           }