Open MrEmanuel opened 3 years ago
Hmm...yup, it's likely caused by my fix to the types for v6. I don't normally use typescript, so if you could suggest a change to the types that would work for both pixi v5 and v6, I'll add it (or merge it if you want to roll a PR). I removed a few of the listener types b/c of a conflict with v6, btw.
The mouseup/mousedown/clicked events should all be there. The mouseup/mousedown is a pixi event, and clicked is an additional viewport event.
Edit: Hmm, maybe I'm mistaken here. I tried downgrading again but the errors are still there. Might be the fact that I upgraded typescript to
4.1.5
from3.7
. Dunno why I'm getting all these error because of that though..I updated my pixi-viewport package from
4.13.2
to4.20.1
and ran in to this error:It seems like
mousedown
,mouseup
was removed and replaced byclicked
.I wasn't expecting breaking changes but I think the update of types to fit with pixi v6 broke some stuff for me. Also having some trouble when I try to pass the viewport object to my stage:
this.app.stage.addChild(viewport)
I'll try updating to pixi v6 and fix any compatibility issues, but I wanted to share this to notify you that this is (or might be classified as(?)) a breaking change.
Also, I'm guessing I'm gonna have some trouble with my
mouseup
andmousedown
functions since they seem to have merged to a singleclicked
event. Any tips on that?