prevent webgl errors on mouse interactions