Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixi Viewport 5 no longer has divWheel Viewport Option #450

Open
jasonsturges opened this issue Jul 2, 2023 · 2 comments
Open

Pixi Viewport 5 no longer has divWheel Viewport Option #450

jasonsturges opened this issue Jul 2, 2023 · 2 comments

Comments

@jasonsturges
Copy link

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

@SamHope1992
Copy link

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?

@jasonsturges
Copy link
Author

jasonsturges commented Feb 3, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants