question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mousewheel not working with pixi 5.3

See original GitHub issue

After updating to pixi 5.3 I’m getting errors when using the mouse wheel

Uncaught TypeError: can't access property "parentElement", this.interactionDOMElement is null
    mapPositionToPoint InteractionManager.ts:1143
    getPointerPosition input-manager.js:191
    handleWheel input-manager.js:213
    wheelFunction input-manager.js:44
    addListeners input-manager.js:45
    InputManager input-manager.js:24
    Viewport viewport.js:143

Happens on Firefox and Chrome

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
spassvogelcommented, Aug 31, 2020

Yup that worked. Thx!

0reactions
inletcommented, Aug 31, 2020

@spassvogel I just pushed a patch, instead of re-instantiating the Interaction Manager, it now updates the resolution. Can you give it a spin and tell me if the issues is fixed?

https://github.com/inlet/react-pixi/releases/tag/v5.0.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse Wheel event handling · Issue #634 · pixijs/pixijs - GitHub
I'm making a game with a big zoomable map, and i want to zoom in/out with the pinch gesture or the mouse wheel....
Read more >
React PIXI pt.2 — Viewport - Jason - Medium
A highly configurable viewport/2D camera designed to work with pixi.js. Features include dragging, pinch-to-zoom, mouse wheel zooming, ...
Read more >
Rotate with mouse wheel - Pixi.js - HTML5 Game Devs Forum
Is it possible to use mouse wheel for game object rotation? How can I do this? Thank you.
Read more >
Pixi3D - v2.1.1
Pixi3D. Pixi3D is a 3D rendering library for the web. It's built on top of PixiJS (which is at it's core, an established...
Read more >
Smooth page scrolling with TweenMax - GSAP - GreenSock
Hi Guys,. I stumbled on this post http://bassta.bg/2013/05/smooth-page-scrolling-with-tweenmax/ and implement the script there but not the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found