Skip to content

Commit

Permalink
Merge pull request #39 from rasmusbe/master
Browse files Browse the repository at this point in the history
IE 8 Fix (issue #13)
  • Loading branch information
triceam committed Feb 8, 2013
2 parents c1276a4 + 256bf57 commit 03e2f76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/viewnavigator/viewnavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);



0 comments on commit 03e2f76

Please sign in to comment.