We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae01e20 commit 14af661Copy full SHA for 14af661
src/pat/inject/inject.js
@@ -1,4 +1,4 @@
1
-import "../../core/jquery-ext"; // for :scrollable for autoLoading-visible
+import "../../core/jquery-ext"; // for findInclusive
2
import $ from "jquery";
3
import ajax from "../ajax/ajax";
4
import dom from "../../core/dom";
@@ -487,8 +487,11 @@ const inject = {
487
}
488
489
if (cfg.scroll && cfg.scroll !== "none") {
490
- let scroll_container = cfg.$target.parents().addBack().filter(":scrollable");
491
- scroll_container = scroll_container.length ? scroll_container[0] : window;
+ const scroll_container = dom.find_scroll_container(
+ cfg.$target[0],
492
+ null,
493
+ window
494
+ );
495
496
// default for scroll===top
497
let top = 0;
0 commit comments