Phaser: Plan to support mouse wheel event in Phaser 3

Created on 2 Jul 2018  路  2Comments  路  Source: photonstorm/phaser

Is there a plan to support mouse wheel events in Phaser 3?

I need to react to a mouse wheel event on a gameobject, and I didn't find a way
to do it in Phaser like you can already do for 'pointerdown' or 'pointerup'
event.

I saw an attempt to support the mouse wheel event in a branch of @jdotrjs: https://github.com/jdotrjs/phaser/tree/jdotrjs/hack-in-mousewheel

What do you think of this implementation? Should it be considered for merging in
the main repository?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

馃挅 Feature Request Low

Most helpful comment

Just to say that this feature landed in version 3.18.0!

All 2 comments

I just spoke briefly with Rich about this and the tl;dr is that there aren't plans to support it in the immediate future but he would be happy to consider a PR that followed the current input management structure.

The change I have in place is ... probably approaching okay but I need to actually sit down and decide if there is a better model (i.e. something closer to touch start/stop). I'm happy to take PRs on my branch but before any real development there probably needs a real design in place on how scroll events will be surfaced/cleared on the pointer object.

Just to say that this feature landed in version 3.18.0!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cncolder picture cncolder  路  4Comments

samme picture samme  路  3Comments

rootasjey picture rootasjey  路  3Comments

JarLowrey picture JarLowrey  路  4Comments

hugoruscitti picture hugoruscitti  路  3Comments