From 5fde6e659d75b47ae009f90ef8e012b7837b2cca Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 3 Feb 2022 16:33:24 +0100 Subject: [PATCH] Revert "Mobile click accessibility" (#11526) --- src/entrypoints/app.ts | 6 +----- src/entrypoints/authorize.ts | 3 --- src/entrypoints/custom-panel.ts | 5 +---- src/entrypoints/onboarding.ts | 3 --- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/entrypoints/app.ts b/src/entrypoints/app.ts index e93a38769e..d4d1852c20 100644 --- a/src/entrypoints/app.ts +++ b/src/entrypoints/app.ts @@ -1,11 +1,7 @@ -import { - setPassiveTouchGestures, - setCancelSyntheticClickEvents, -} from "@polymer/polymer/lib/utils/settings"; +import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings"; import "../layouts/home-assistant"; import "../resources/ha-style"; import "../resources/roboto"; import "../util/legacy-support"; setPassiveTouchGestures(true); -setCancelSyntheticClickEvents(false); diff --git a/src/entrypoints/authorize.ts b/src/entrypoints/authorize.ts index 47ba124a91..36954a3fcf 100644 --- a/src/entrypoints/authorize.ts +++ b/src/entrypoints/authorize.ts @@ -1,14 +1,11 @@ // Compat needs to be first import import "../resources/compatibility"; -import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings"; import "../auth/ha-authorize"; import "../resources/ha-style"; import "../resources/roboto"; import "../resources/safari-14-attachshadow-patch"; import "../resources/array.flat.polyfill"; -setCancelSyntheticClickEvents(false); - /* polyfill for paper-dropdown */ setTimeout( () => import("web-animations-js/web-animations-next-lite.min"), diff --git a/src/entrypoints/custom-panel.ts b/src/entrypoints/custom-panel.ts index 2e09f9931b..e2da175ea8 100644 --- a/src/entrypoints/custom-panel.ts +++ b/src/entrypoints/custom-panel.ts @@ -1,6 +1,5 @@ // Compat needs to be first import import "../resources/compatibility"; -import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings"; import "../resources/safari-14-attachshadow-patch"; import { PolymerElement } from "@polymer/polymer"; @@ -16,8 +15,6 @@ import { createCustomPanelElement } from "../util/custom-panel/create-custom-pan import { loadCustomPanel } from "../util/custom-panel/load-custom-panel"; import { setCustomPanelProperties } from "../util/custom-panel/set-custom-panel-properties"; -setCancelSyntheticClickEvents(false); - declare global { interface Window { loadES5Adapter: () => Promise; @@ -50,7 +47,7 @@ function initialize( ) { const style = document.createElement("style"); - style.innerHTML = `body { margin:0; } + style.innerHTML = `body { margin:0; } @media (prefers-color-scheme: dark) { body { background-color: #111111; diff --git a/src/entrypoints/onboarding.ts b/src/entrypoints/onboarding.ts index 78696169ca..44a67890ab 100644 --- a/src/entrypoints/onboarding.ts +++ b/src/entrypoints/onboarding.ts @@ -1,14 +1,11 @@ // Compat needs to be first import import "../resources/compatibility"; -import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings"; import "../onboarding/ha-onboarding"; import "../resources/ha-style"; import "../resources/roboto"; import "../resources/safari-14-attachshadow-patch"; import "../resources/array.flat.polyfill"; -setCancelSyntheticClickEvents(false); - declare global { interface Window { stepsPromise: Promise;