Fricken Hamster Posted November 6, 2015 Share Posted November 6, 2015 Where do the mouse events propagate from?Could somehow give me an overview, or location in the code?Thanks Quote Link to comment Share on other sites More sharing options...
chg Posted November 6, 2015 Share Posted November 6, 2015 They come from the DOM, just the seatch the code for "addEventListener" Quote Link to comment Share on other sites More sharing options...
coolblue Posted November 21, 2015 Share Posted November 21, 2015 I'm tempted to say "the event Fairy" but, I guess your old enough to know the truth: it depends what type of objects you are talking about. In Pixi they come from an object called EventEmitter which is inherited by DisplayObject, which in turn, is inherited by most other objects. This object is sourced from eventemitter3 as you can see in the pixi dependencies and by these statements in the DisplayObject constructor: EventEmitter = require('eventemitter3') function DisplayObject(){ EventEmitter.call(this); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.