fix chart zoom for firefox