{"id":15725003,"url":"https://github.com/ecto/ripstop","last_synced_at":"2025-03-13T01:31:31.082Z","repository":{"id":2500774,"uuid":"3475444","full_name":"ecto/ripstop","owner":"ecto","description":"Prevent pages on iOS Safari from ripping when using -webkit-overflow-scroll","archived":false,"fork":false,"pushed_at":"2012-02-18T03:02:04.000Z","size":99,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T18:11:59.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-18T01:36:30.000Z","updated_at":"2013-10-24T19:37:28.000Z","dependencies_parsed_at":"2022-09-24T05:12:02.530Z","dependency_job_id":null,"html_url":"https://github.com/ecto/ripstop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fripstop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fripstop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fripstop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fripstop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecto","download_url":"https://codeload.github.com/ecto/ripstop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243322353,"owners_count":20272860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:18:49.375Z","updated_at":"2025-03-13T01:31:30.773Z","avatar_url":"https://github.com/ecto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Ripstop\n\n`-webkit-overflow-scrolling: touch` is awesome. Ripstop makes it more awesome.\n\n### Before Ripstop\n\nWhen pulling down or up when child is already at edge, \n_the page will rip from browser chrome and reveal linen._\n\n### After Ripstop\n\nWhen pulling down or up when child is already at edge, \n_the child will rip from the parent, revealing the parent._\n\n##usage\n\nPull in Ripstop:\n\n````html\n\u003cscript src=\"/javascripts/ripstop.js\"\u003e\u003c/script\u003e\n````\n\nWith pure JS:\n\n````javascript\nwindow.onload = function () {\n  ripstop(\n    document.getElementById('wrapper')\n  );\n}\n````\n\nWith jQuery:\n\n````javascript\n$(document).ready(function(){\n  $('#wrapper').ripstop();\n});\n````\n\nRipstop should be applied to a block wrapper element with one larger child.\nThe wrapper must have the following style:\n\n````css\n#wrapper {\n  overflow: scroll;\n  -webkit-overflow-scrolling: touch;\n}\n````\n\nRipstop will take over the child element's `ontouchstart` event. If you need it for anything,\nyou will have to rip out the necessary logic from Ripstop.\n\n##license\n\n(The MIT License)\n\nCopyright (c) 2011 Cam Pedersen \u003ccam@onswipe.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fripstop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecto%2Fripstop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fripstop/lists"}