Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
pixi-hammer
Advanced tools
Connect Hammer.js with PixiJS.
Allow us to use Hammer.js
gesture recognizer with PixiJS
instance.
npm install pixi-hammer
var PIXI = require('pixi.js');
var Connector = require('pixi-hammer');
var app = new PIXI.Application(320, 400);
// initialize the Connector
var c = new Connector(app);
// assume we have a PIXI instance
var rect = new PIXI.Graphics();
rect.beginFill(0x000000);
rect.drawRect(100, 100, 100, 100);
app.stage.addChild(rect);
// listen hammer.js event from that instance
c.listen(rect, 'pinch', function(e) {
console.log('pinching on the rect!');
});
Instead of traverse whole PIXI scene graph, this connector cache listeners to its own stack and only check the instance itself and up to the root.
stopPropagation
etcMIT
FAQs
Use Hammerjs with pixi
We found that pixi-hammer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.