pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

Pixi Viewport 5 no longer has divWheel Viewport Option

Open jasonsturges opened this issue 2 years ago • 2 comments

Unless I'm mistaken, IViewportOptions no longer contains divWheel as per the current documentation:

https://davidfig.github.io/pixi-viewport/jsdoc/Viewport.html#Viewport image

Was this feature intentionally removed and the documentation now stale?

If it was removed, what replaces this functionality?

image

Latest v5.0.1

jasonsturges avatar Jul 02 '23 03:07 jasonsturges

Unless I'm mistaken, IViewportOptions no longer contains divWheel as per the current documentation:

https://davidfig.github.io/pixi-viewport/jsdoc/Viewport.html#Viewport image

Was this feature intentionally removed and the documentation now stale?

If it was removed, what replaces this functionality?

image Latest v5.0.1

Did you ever find a solution to this?

SamHope1992 avatar Feb 03 '24 01:02 SamHope1992

@SamHope1992

With Pixi v7, I use:

events: app.renderer.events,

Wth Pixi v6, I use:

  divWheel: app.view,
  interaction: app.renderer.plugins.interaction,

I don't recall a solution for v5.

In retrospect, I imagine it was typing a issue where ICanvas interface didn't fulfill the Element type.

Probably should have been:

  divWheel: app.view as HTMLCanvasElement

jasonsturges avatar Feb 03 '24 04:02 jasonsturges