Skip to content

TouchEvent not defined (on Firefox) #128

@owenmoogk

Description

@owenmoogk

Everything works well on chrome, but trying to use react-compare-image on Firefox doesn't work. I get a console error saying:

Image

I think this is coming from line 137 in ReactCompareImage.tsx: if (e instanceof TouchEvent)

On Mozilla, it's also saying that it's not supported on Safari: https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent#browser_compatibility

This might solve it:
https://stackoverflow.com/questions/27313488/touchevent-not-working-in-firefox-and-other-website-browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions