Fixes Issue #13:

returns the following error on IE8:

Line: 843
Error: Object doesn't support this property or method
This commit is contained in:
Rasmus 2013-01-23 22:26:57 +01:00
parent ebdf914795
commit 256bf572bb
1 changed files with 4 additions and 1 deletions

View File

@ -391,7 +391,10 @@ function onBackKey( event ) {
*/
//block page scrolling
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
if (!document.addEventListener)
document.attachEvent('touchmove', function (e) { e.preventDefault(); });
else
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);