Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
angular-wheelie
Advanced tools
angular-wheelie exposes a service that allows you to bind mousewheel events to an angular element.
Install with bower:
bower install angular-wheelie
Or with npm:
npm install angular-wheelie
Or simply download the latest release.
The pre-built files can be found in the dist/
directory.
dist/angular-wheelie.min.js
is minified and production-ready. Example usage:
<script src="dist/angular-wheelie.min.js"></script>
Add wheelie
to your app's module dependencies:
angular.module('myapp', ['wheelie']);
And now you can use the wheelie
service in your controllers, directives,
services etc. Example usage in a controller:
app.controller('MyController', [ '$scope', 'wheelie', function ($scope, wheelie) {
var target = angular.element('#someElement');
// To listen for mousewheel events
wheelie.bind(target, {
up: function (event) {
console.log('mousewheel up on element #someElement!');
},
down: function (event) {
console.log('mousewheel down on element #someElement!');
// to prevent scrolling, use event.preventDefault();
}
});
// To unbind:
$scope.on('$destroy', function () {
wheelie.unbind(target);
});
}]);
Contributions are welcomed! Here are the contribution guidelines.
First clone the repository and install dependencies:
npm install
To run tests:
npm test
To lint the code:
npm run lint
To make a production build:
npm run build
FAQs
Mousewheel as an angular service
The npm package angular-wheelie receives a total of 14 weekly downloads. As such, angular-wheelie popularity was classified as not popular.
We found that angular-wheelie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.