Kevin Heinicke hace 10 años
padre
commit
321a9c9911
Se han modificado 2 ficheros con 2 adiciones y 8 borrados
  1. 1 8
      index.html
  2. 1 0
      js/script.js

+ 1 - 8
index.html

@@ -20,14 +20,7 @@
   <script src="js/controller.js"></script>
 	<script src="js/script.js"></script>
   <script src="js/ng-app.js"></script>
-<script>
-window.onscroll = function () {
-window.scrollTo(0,0);
-}
-document.ontouchmove = function(event){
-    event.preventDefault();
-}
-</script>
+
   <link rel="stylesheet" type="text/css" href="css/style.css">
   <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
   <link rel="icon" href="img/favicon.ico" type="image/x-icon">

+ 1 - 0
js/script.js

@@ -31,6 +31,7 @@ $(function(){
  
   // Callback function references the event target and adds the 'swipe' class to it
   function swipeHandler( event ){
+    event.preventDefault();
     // $( event.target ).addClass( "swipe" );
     var direction = {x: 0, y: 0};
     var start = event.swipestart.coords;