mwni / pixi-mousewheel Goto Github PK
View Code? Open in Web Editor NEWPlugin for pixi.js, which enables mousewheel events on display objects.
Plugin for pixi.js, which enables mousewheel events on display objects.
So I had these
var seekbar = new PIXI.Container()
seekbar.graphics = new PIXI.Graphics();
seekbar.graphics.beginFill(0xDE3249);
seekbar.graphics.drawRect(0,0,690,2);
seekbar.graphics.endFill();
seekbar.x = 15
seekbar.y = 20
seekbar.interactive = true
seekbar.interactiveMousewheel = true
seekbar.on('mousewheel', (delta, event) => {
seekbar.graphics.x += delta * 100
console.log(delta)
})
I tried scrolling on it but nothing happen. not even the log. Am I doing something wrong?
Hi, thanks for open sourcing this project. We're hoping to use this plugin in one of our projects but we were unable to determine the license. Could you add a LICENSE file to the repo to clarify how it may be used?
If you haven't given it consideration yet, having the same MIT license as Pixi itself would be preferred; otherwise there's more info about various licenses here: https://choosealicense.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.