
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
leaflet-almostover
Advanced tools
This plugin allows to detect mouse click and overing events on lines, with a tolerance distance.
It is useful if paths are drawn with a very small weight, or for clicks detection on mobile devices, for which finger precision can be a problem.
Play with online demo.
It requires Leaflet.GeometryUtil.
var map = L.map('map');
...
var lines = L.geoJson(...);
...
map.almostOver.addLayer(lines);
map.on('almost:over', function (e) {
alert('Almost clicked !');
});
Events triggered when mouse is almost over a layer :
If the layer has many features, this plugin can slow down 'panning' performance, as, by default, it process 'mousemove' events. If only 'almost:click' or 'almost:dblclick' are needed, and 'almost' events related to 'mousemove' events are not needed, they can be disabled with almostOnMouseMove
map option.
var map = L.map('map', {
almostOnMouseMove: false,
});
...
var lines = L.geoJson(...);
...
map.almostOver.addLayer(lines);
map.on('almost:click', function (e) {
alert('Almost clicked !');
});
FAQs
Leaflet.AlmostOver ==================
The npm package leaflet-almostover receives a total of 161 weekly downloads. As such, leaflet-almostover popularity was classified as not popular.
We found that leaflet-almostover 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.