Skip to content

Broken zoom because of an undefined attribute #108

@Lattay

Description

@Lattay

Describe the bug
When trying to zoom with the mouse wheel, an exception is raised in the check for a menu item (or something ?)

path is undefined.

To Reproduce
Steps to reproduce the behavior:

  1. Open the editor
  2. Open the developer console of the browser
  3. Scroll with the mouse wheel on the canvas
  4. See error TypeError: mouseEvent.path is undefined

Expected behavior
Zooming (also I am not sure what is the point of view on zoom right now, seeing #103)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox
  • Version: 108

Additional context
The mouseEvent object should be a WheelEvent.
There is no such path attribute documented, I don't know where it is supposed to come from.

Note that I tried to comment this line (and the one below) in a development instance of the app (on current master, namely 5d55425) and the zoom worked as expected.

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