Fixed memory leaks in IE11 due to implementation of touch support. Closes #2691.