-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: TouchEvent is not defined #1317
Comments
Going to quote my (duplicate-of-this) issue:
|
@towerofnix Browsers define the JavaScript functions, not the system. |
@amazinigmech2418 Sure, but the browser can choose to define functions according to whatever system you're on. It seems silly to me to do that, but apparently Firefox does, per my link.
|
@towerofnix That says that Windows can now use it. The touch events need to be processed by the browser from the actual event in the hardware. They just updated the event reader. |
@paulkaplan @towerofnix @amazinigmech2418 To get this working (on FF at least) if (e.button === 0 || window.TouchEvent && e instanceof TouchEvent) { |
TouchEvent is not always defined. Reported via Sentry. Doesn't seem to be a crashing error.
The text was updated successfully, but these errors were encountered: