Skip to content

Canvas.mouseWheel event is undefined #1604

@KevinWorkman

Description

@KevinWorkman

I'm trying to run this example from the reference: http://p5js.org/reference/#/p5.Element/mouseWheel

This works fine in Chrome and Edge, but not in Firefox or IE.

In Firefox I get ReferenceError: event is not defined. In IE I don't get any errors, but if I print the value of event I see that it is undefined.

I found this closed issue which might be related, and this closed issue that makes me wonder if mouseWheel() was finished for non-chrome browsers?

I should also note that the regular (not using the Canvas) mouseWheel() examples works fine on all browsers: http://p5js.org/reference/#/p5.Element/mouseWheel

Is this expected behavior?

Originally reported on the Processing forum: https://forum.processing.org/two/discussion/comment/75533

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions