fix paintbrush lag in chrome