{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4008","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4008/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4008/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4008/events","html_url":"https://github.com/driftyco/ionic/issues/4008","id":91919756,"number":4008,"title":"bug : native scrolling broken because event.preventDefault() being called on drag gestures by default when inst.options.prevent_default_directions is empty","user":{"login":"jskrzypek","id":1513265,"avatar_url":"https://avatars.githubusercontent.com/u/1513265?v=3","gravatar_id":"","url":"https://api.github.com/users/jskrzypek","html_url":"https://github.com/jskrzypek","followers_url":"https://api.github.com/users/jskrzypek/followers","following_url":"https://api.github.com/users/jskrzypek/following{/other_user}","gists_url":"https://api.github.com/users/jskrzypek/gists{/gist_id}","starred_url":"https://api.github.com/users/jskrzypek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskrzypek/subscriptions","organizations_url":"https://api.github.com/users/jskrzypek/orgs","repos_url":"https://api.github.com/users/jskrzypek/repos","events_url":"https://api.github.com/users/jskrzypek/events{/privacy}","received_events_url":"https://api.github.com/users/jskrzypek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-29T21:58:12Z","updated_at":"2015-06-29T21:58:12Z","closed_at":null,"body":"**Type**: bug\r\n\r\n**Platform**: ios (but maybe all)\r\n\r\n@perrygovier (and the rest of the team but the commit below is Perry's)\r\n\r\nThe current nightly build breaks native scrolling in `ion-content`s when they don't have an `ion-list` or an `ion-scroll` wrapping the contents. The view is not scrollable.\r\n\r\nTo reproduce build a project with the code in this codepen: http://codepen.io/jskrzypek/pen/oXpPmG\r\n\r\nI think this commit introduced the bug: https://github.com/driftyco/ionic/commit/56ab0f2b5d7f5bd35ed6252749cfa1867c3b0f6a, it's on line https://github.com/driftyco/ionic/blob/master/js/utils/gestures.js#L1174.\r\n\r\nIt seems this is more likely what was meant (and fixes the bug):\r\n```diff\r\n        // Prevent gestures that are not intended for this event handler from firing subsequent times\r\n-        if (inst.options.prevent_default_directions.length === 0\r\n-           || inst.options.prevent_default_directions.indexOf(ev.direction) != -1) {\r\n+       if (inst.options.prevent_default_directions.length > 0\r\n+           && inst.options.prevent_default_directions.indexOf(ev.direction) != -1) {\r\n           ev.srcEvent.preventDefault();\r\n```"}}