adjust drawing of connection to scrolled state of scrolled window