{"_id":"zinfinitescroll","_rev":"5-340add5f819e4dbcc2dc697a407db957","name":"zinfinitescroll","description":"angular directive to handle element scroll","dist-tags":{"latest":"1.1.6"},"versions":{"1.1.4":{"name":"zinfinitescroll","version":"1.1.4","description":"angular directive to handle element scroll","main":"zInfiniteScroll.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/LightZam/zInfiniteScroll.git"},"keywords":["angular","infinite","scroll","inverse","mobile"],"author":{"name":"lightzam"},"license":"MIT","bugs":{"url":"https://github.com/LightZam/zInfiniteScroll/issues"},"homepage":"https://github.com/LightZam/zInfiniteScroll#readme","gitHead":"c290605730275d896bd4f6ad33a203085280d7ed","_id":"zinfinitescroll@1.1.4","_shasum":"083b609070340242c8cfa91845066e88e3cabe14","_from":".","_npmVersion":"3.6.0","_nodeVersion":"0.12.5","_npmUser":{"name":"lightzam","email":"love8879201@gmail.com"},"dist":{"shasum":"083b609070340242c8cfa91845066e88e3cabe14","tarball":"https://registry.npmjs.org/zinfinitescroll/-/zinfinitescroll-1.1.4.tgz","integrity":"sha512-xK2ntoP7uxJZD/boUc6bMtHEyEqJjsozSmzwkt1t+b+DZnHpBYClA35EPCoPf11LxavsfZD8jbIwSigJELz7qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBbBu8neKT+8huqGEdV7eQzv3CLjB1IhcYK7E+ZbdXmfAiEA2dWl9GMfcISVhJTVmngKm+zPqIL1+iAnJfKTB0yMitM="}]},"maintainers":[{"name":"lightzam","email":"love8879201@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/zinfinitescroll-1.1.4.tgz_1463454629540_0.4947767504490912"}},"1.1.5":{"name":"zinfinitescroll","version":"1.1.5","description":"angular directive to handle element scroll","main":"zInfiniteScroll.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/LightZam/zInfiniteScroll.git"},"keywords":["angular","infinite","scroll","inverse","mobile"],"author":{"name":"lightzam"},"license":"MIT","bugs":{"url":"https://github.com/LightZam/zInfiniteScroll/issues"},"homepage":"https://github.com/LightZam/zInfiniteScroll#readme","gitHead":"9bf477eb238ed3bb6429422f8357fc10332b6d0b","_id":"zinfinitescroll@1.1.5","_shasum":"361fa9f01f6bd6de6770bfdd477b27dd16e6aecc","_from":".","_npmVersion":"3.6.0","_nodeVersion":"0.12.5","_npmUser":{"name":"lightzam","email":"love8879201@gmail.com"},"dist":{"shasum":"361fa9f01f6bd6de6770bfdd477b27dd16e6aecc","tarball":"https://registry.npmjs.org/zinfinitescroll/-/zinfinitescroll-1.1.5.tgz","integrity":"sha512-gY0U1cUqcqHuQshQp4Z2/SBc7FuDRcAUV8HSmW4izC65UK5Y6N7ANAEfL4Dm3tlnVvePxmN46kZ83Z5Yt/C7hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzS+TuimzgCWCISy4jQhHAPb63uhGBA6mC2/XAb3zC5wIgYvxKRnEHyTH4Mme4zFG6VB0+K3yECHOjTuo5udYbJv4="}]},"maintainers":[{"name":"lightzam","email":"love8879201@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zinfinitescroll-1.1.5.tgz_1463455331438_0.3496140807401389"}},"1.1.6":{"name":"zinfinitescroll","version":"1.1.6","description":"angular directive to handle element scroll","main":"zInfiniteScroll.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/LightZam/zInfiniteScroll.git"},"keywords":["angular","infinite","scroll","inverse","mobile"],"author":{"name":"lightzam"},"license":"MIT","bugs":{"url":"https://github.com/LightZam/zInfiniteScroll/issues"},"homepage":"https://github.com/LightZam/zInfiniteScroll#readme","gitHead":"f7761a14714abbf0a328a398b7cf5ef357fd9a12","_id":"zinfinitescroll@1.1.6","_shasum":"bb436cece804f2091062ea5ef1a1608cbde52b7c","_from":".","_npmVersion":"3.6.0","_nodeVersion":"0.12.5","_npmUser":{"name":"lightzam","email":"love8879201@gmail.com"},"dist":{"shasum":"bb436cece804f2091062ea5ef1a1608cbde52b7c","tarball":"https://registry.npmjs.org/zinfinitescroll/-/zinfinitescroll-1.1.6.tgz","integrity":"sha512-9huS5pTgy2+JitkqsNdVOSNVyVabFs4myuDxkDMGigrEBgxl6T4ua9ockGubYilwNALXTypVIva6mMFkb1RM8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEk/ie+ElcLvoauGAbK2SGvBZk3c7+IfwkIC93Ky5NdzAiAR9VqnFnC9hMV/UaXpNI2QniUkJqKrUQI7ylrE7erERw=="}]},"maintainers":[{"name":"lightzam","email":"love8879201@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/zinfinitescroll-1.1.6.tgz_1463455838288_0.4264136333949864"}}},"readme":"# zInfiniteScroll\n\nIt is a module for [AngularJS](http://angularjs.org/) which allow you to attach an event handler to the element when this element\nhas been scrolled almost to its bottom. In most of the case it will be used for infinite scrolling.\nIt is very light and optimized to reduce the amount of $digest loop.\n\nzInfiniteScroll was forked from lrInfiniteScroll, but more functionality and browser compatibility even on mobile.\n\n## Installation\n\nUsing bower\n\n    bower install zInfiniteScroll\n    \nUsing npm\n\n    npm install zinfinitescroll\n\n## Demo\n[Body scroll down](http://lightzam.github.io/zInfiniteScroll/example01_bodyScroll.html)\n\n[Body scroll up](http://lightzam.github.io/zInfiniteScroll/example02_bodyScroll_inverse.html)\n\n[Normal scroll down](http://lightzam.github.io/zInfiniteScroll/example03_normalScroll.html)\n\n[Normal scroll up](http://lightzam.github.io/zInfiniteScroll/example04_normalScroll_inverse.html)\n\n## Attach an event handler\n\nsimply set as attribute a function accessible within the $scope\n\n```html\n<ul z-infinite-scroll=\"myEventHandler\">\n    <li ng-repeat=\"item in myCollection\">\n</ul>\n```\n\n## use infinite scroll without set height on your element\n\nuse the body as scroll target\n\n```html\n<ul z-infinite-scroll=\"myEventHandler\" body-scroll=\"true\">\n    <li ng-repeat=\"item in myCollection\">\n</ul>\n```\n\n## scroll to top\n\nscroll to up and load your data by myEventHandler when it scrolled almost to its top\n\n```html\n<ul z-infinite-scroll=\"myEventHandler\" inverse=\"true\">\n    <li ng-repeat=\"item in myCollection\">\n</ul>\n```\n\n## Change the scroll threshold\n\nBy default the handler will be called when the user is scrolling *down* and only *50* pixels are remaining before reaching the end\nof the element. You can overwrite the 50px by setting the attribute *scroll-threshold*\n\n```html\n<ul z-infinite-scroll=\"myEventHandler\" scroll-threshold=\"200\">\n    <li ng-repeat=\"item in myCollection\">\n</ul>\n```\n## Change the time threshold\n\nTo reduce the amount of $digest loop, instead of calling the handler whenever a scroll down event is detected in the end zone. A time is started and if\nno other event is detected within 400ms, then the handler is called. You can overwrite the time value by setting the *time-threshold* attribute.\n\n```html\n<ul z-infinite-scroll=\"myEventHandler\" scroll-threshold=\"200\" time-threshold=\"600\">\n    <li ng-repeat=\"item in myCollection\">\n</ul>\n```\n\n## License\n\nlrInfinite scroll module is under MIT license:\n\n> Copyright (C) 2015 Zam Huang.\n>\n> Permission is hereby granted, free of charge, to any person\n> obtaining a copy of this software and associated documentation files\n> (the \"Software\"), to deal in the Software without restriction,\n> including without limitation the rights to use, copy, modify, merge,\n> publish, distribute, sublicense, and/or sell copies of the Software,\n> and to permit persons to whom the Software is furnished to do so,\n> subject to the following conditions:\n>\n> The above copyright notice and this permission notice shall be\n> included in all copies or substantial portions of the Software.\n>\n> THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n> BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n> ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n> SOFTWARE.\n","maintainers":[{"name":"lightzam","email":"love8879201@gmail.com"}],"time":{"modified":"2022-06-29T17:26:58.741Z","created":"2016-05-17T03:10:33.323Z","1.1.4":"2016-05-17T03:10:33.323Z","1.1.5":"2016-05-17T03:22:11.991Z","1.1.6":"2016-05-17T03:30:42.019Z"},"homepage":"https://github.com/LightZam/zInfiniteScroll#readme","keywords":["angular","infinite","scroll","inverse","mobile"],"repository":{"type":"git","url":"git+https://github.com/LightZam/zInfiniteScroll.git"},"author":{"name":"lightzam"},"bugs":{"url":"https://github.com/LightZam/zInfiniteScroll/issues"},"license":"MIT","readmeFilename":"readme.md"}