add check to see that middle click scrolling variables are fully intialized