Take elements scroll position into account when positioning html bridge