Take element's scroll position into account when positioning html bridge