Jump to content

mousewheel event issue


Recommended Posts

okay. I will be more descriptive with the title next time.!!!

I am using melonjs 4.1 . Tried in both firefox and chrome, I am using Windows 8.1


this is my code 

      me.input.registerPointerEvent("mousewheel", me.game.viewport, function (event) {
           me.event.publish("mousewheel", [ event ]);
        this.mousewheel = me.event.subscribe("mousewheel", function (event) {

            var viewport = me.game.viewport;
            viewport.width * viewport.anchorPoint.x,
            viewport.height * viewport.anchorPoint.y
            -viewport.width * viewport.anchorPoint.x,
            -viewport.height * viewport.anchorPoint.y





Link to comment
Share on other sites

oops, looks like you found an issue with the 4.1.0. We did refactor some code linked to pointer event management, and it seems that we kind of broke the mouse wheel event.

I just fixed it on the master branch, if you pull the latest version it should work then (i tested using your code snippet).

Sorry about that, and thank you 10000x for reporting it :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...