Query .scrollParent()Finds nearest scroll container elementquery-scrollparent6componentQuerypage.jsPositionReturns window if no scroll container found. Use { all: true } to get all scroll parents in the chain["query","scroll","parent","overflow"].scrollParent()Example Semantic UI