fix chart zoom for firefox

fix chart zoom for firefox