Skip to content

Commit

Permalink
fix(Mobile): Don't preventDflt container touches
Browse files Browse the repository at this point in the history
event.preventDefault() in uiGridRenderContainer touchmove handler was
preventing momentum scrolling from working on mobile devices. Removing
this call seems to have allowed more natural mobile scrolling. I have only
tested on Android as that's what's available but hopefully iOS will be
better as well
  • Loading branch information
c0bra committed Feb 3, 2015
1 parent 7774d30 commit 8fe4e49
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/js/core/directives/ui-grid-render-container.js
Expand Up @@ -175,8 +175,6 @@
event = event.originalEvent;
}

event.preventDefault();

var deltaX, deltaY, newX, newY;
newX = event.targetTouches[0].screenX;
newY = event.targetTouches[0].screenY;
Expand Down

0 comments on commit 8fe4e49

Please sign in to comment.