Corrected input bug on WebGL interface.