{"id":16665650,"url":"https://github.com/zmmbreeze/useoverflowevent","last_synced_at":"2025-04-09T19:13:16.365Z","repository":{"id":14496220,"uuid":"17209202","full_name":"zmmbreeze/useOverflowEvent","owner":"zmmbreeze","description":"Way to detect overflow event support and use it with graceful degradation.","archived":false,"fork":false,"pushed_at":"2014-02-27T15:41:59.000Z","size":172,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:13:10.232Z","etag":null,"topics":["event","javascript","overflow-event"],"latest_commit_sha":null,"homepage":"http://zencode.in/useOverflowEvent/","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/zmmbreeze.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":"2014-02-26T11:57:01.000Z","updated_at":"2019-10-05T09:57:03.000Z","dependencies_parsed_at":"2022-09-21T13:12:07.175Z","dependency_job_id":null,"html_url":"https://github.com/zmmbreeze/useOverflowEvent","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/zmmbreeze%2FuseOverflowEvent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmmbreeze%2FuseOverflowEvent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmmbreeze%2FuseOverflowEvent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmmbreeze%2FuseOverflowEvent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmmbreeze","download_url":"https://codeload.github.com/zmmbreeze/useOverflowEvent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094987,"owners_count":21046770,"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":["event","javascript","overflow-event"],"created_at":"2024-10-12T11:07:48.722Z","updated_at":"2025-04-09T19:13:16.337Z","avatar_url":"https://github.com/zmmbreeze.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"useOverflowEvent.js\n===\n\nWay to detect overflow event support and use it with graceful degradation. Overflow event now supported on Chrome(tested on 9+) and Firefox(tested on 1.5+).\n\n[DEMO](http://nodejs.in/useOverflowEvent)\n\nHOW TO USE\n---\n\n```javascript\nuseOverflowEvent(function (addOverflowListener) {\n    if (!addOverflowListener) {\n        // browser not support overflow event\n        // do somethings or nothing\n        return;\n    }\n\n    var container = document.getElementById('demo');\n    addOverflowListener(container, 'over', function () {\n        console.log('overflow');\n    });\n    addOverflowListener(container, 'under', function () {\n        console.log('underflow');\n    });\n});\n```\n\nLICENTSE\n---\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmmbreeze%2Fuseoverflowevent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmmbreeze%2Fuseoverflowevent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmmbreeze%2Fuseoverflowevent/lists"}