Fix tree autoscroll on Windows