
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Poniter is a UI library that implements lightweight, emphemeral routers for pointers (mouse, touch, and stylus events).
Poniter expects the following features in the environment, which will need to be polyfilled:
Also note that, to get pointer events for touches, you will need to set
"touch-action" to "none" (either as a style or as an attribute, depending on
the way your polyfill works) on <html>, <body>, or any element you want
touch events to start from.
To listen for poniter-enhanced pointer events, call poniter.listen with the
element you wish to listen to, then call ".on" methods for respective pointer
events:
/*global poniter*/
poniter.listen(document.getElementById('example'))
.on('enter', function(evt) {
console.log('new pointer over example element');
})
.on('down', function(evt) {
console.log('example element tapped');
})
Any event can also listen to further events from the given pointer by using the
pon method of the event (you may wish to combine this with
setPointerCapture) - each pon call returns the original event, so multiple
pon calls may be chained:
poniter.listen(document.getElementById('example'))
.on('down', function(evt) {
var downtime = Date.now();
evt.target.setPointerCapture(evt.pointerId);
evt.pon('up', function(evt) {
var duration = (Date.now() - downtime) / 1000;
console.log('Pointer dropped after ' + duration + ' seconds');
}).pon('cancel',function(evt) {
var duration = (Date.now() - downtime) / 1000;
console.log('Pointer canceled after ' + duration + ' seconds');
});
});
Copyright 2015 Stuart P. Bentley.
This work may be used freely as long as this notice is included.
The work is provided "as is" without warranty, express or implied.
FAQs
A pointer event router with helper functions for positioning.
The npm package poniter receives a total of 8 weekly downloads. As such, poniter popularity was classified as not popular.
We found that poniter 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.