Revert "Mobile click accessibility" (#11526)

This commit is contained in:
Bram Kragten 2022-02-03 16:33:24 +01:00 committed by GitHub
parent 148bb99d89
commit 5fde6e659d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 15 deletions

View File

@ -1,11 +1,7 @@
import { import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings";
setPassiveTouchGestures,
setCancelSyntheticClickEvents,
} from "@polymer/polymer/lib/utils/settings";
import "../layouts/home-assistant"; import "../layouts/home-assistant";
import "../resources/ha-style"; import "../resources/ha-style";
import "../resources/roboto"; import "../resources/roboto";
import "../util/legacy-support"; import "../util/legacy-support";
setPassiveTouchGestures(true); setPassiveTouchGestures(true);
setCancelSyntheticClickEvents(false);

View File

@ -1,14 +1,11 @@
// Compat needs to be first import // Compat needs to be first import
import "../resources/compatibility"; import "../resources/compatibility";
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
import "../auth/ha-authorize"; import "../auth/ha-authorize";
import "../resources/ha-style"; import "../resources/ha-style";
import "../resources/roboto"; import "../resources/roboto";
import "../resources/safari-14-attachshadow-patch"; import "../resources/safari-14-attachshadow-patch";
import "../resources/array.flat.polyfill"; import "../resources/array.flat.polyfill";
setCancelSyntheticClickEvents(false);
/* polyfill for paper-dropdown */ /* polyfill for paper-dropdown */
setTimeout( setTimeout(
() => import("web-animations-js/web-animations-next-lite.min"), () => import("web-animations-js/web-animations-next-lite.min"),

View File

@ -1,6 +1,5 @@
// Compat needs to be first import // Compat needs to be first import
import "../resources/compatibility"; import "../resources/compatibility";
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
import "../resources/safari-14-attachshadow-patch"; import "../resources/safari-14-attachshadow-patch";
import { PolymerElement } from "@polymer/polymer"; 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 { loadCustomPanel } from "../util/custom-panel/load-custom-panel";
import { setCustomPanelProperties } from "../util/custom-panel/set-custom-panel-properties"; import { setCustomPanelProperties } from "../util/custom-panel/set-custom-panel-properties";
setCancelSyntheticClickEvents(false);
declare global { declare global {
interface Window { interface Window {
loadES5Adapter: () => Promise<unknown>; loadES5Adapter: () => Promise<unknown>;

View File

@ -1,14 +1,11 @@
// Compat needs to be first import // Compat needs to be first import
import "../resources/compatibility"; import "../resources/compatibility";
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
import "../onboarding/ha-onboarding"; import "../onboarding/ha-onboarding";
import "../resources/ha-style"; import "../resources/ha-style";
import "../resources/roboto"; import "../resources/roboto";
import "../resources/safari-14-attachshadow-patch"; import "../resources/safari-14-attachshadow-patch";
import "../resources/array.flat.polyfill"; import "../resources/array.flat.polyfill";
setCancelSyntheticClickEvents(false);
declare global { declare global {
interface Window { interface Window {
stepsPromise: Promise<Response>; stepsPromise: Promise<Response>;