prevented weird graph scrolling