Skip to content

TouchEvent is not defined error with Firefox Desktop / Can't find variable: TouchEvent error with Safari Desktop #76

@tbouffard

Description

@tbouffard

Environment

  • Firefox Desktop 95.0.1 and 96.0
  • Ubuntu 20.04.3 LTS
  • Node v16.13.1 npm 8.3.0
  • commit 3494d0f

The error is triggered when clicking on the Canvas or when selecting a shape or panning the graph as shown in the following video 👇

Firefox_desktop_TouchEvent_not_defined.mp4
Uncaught ReferenceError: TouchEvent is not defined
    consume InternalMouseEvent.ts:180
    consumeMouseEvent SelectionHandler.ts:544
    mouseUp SelectionHandler.ts:1462
    fireMouseEvent EventsMixin.ts:998
    installListeners CellRenderer.ts:788

Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1693172. It seems there is no issue when touch simulation is enabled (which is disabled by default on Desktop) or a touch device is detected.
Possible fix: https://stackoverflow.com/questions/27313488/touchevent-not-working-in-firefox-and-other-website-browser#32882849

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions