fix!: remove checks for IE and EdgeHTML in core (#6336)

* chore: remove uses of userAgent.IE

* chore!: remove export of userAgent.IE

* format: run format

* fix!: remove special-cases for EdgeHTML browser engine

* fix!: remove export of userAgent.EDGE

* chore: remove unused dependencies

* fix: touch events in non-touch firefox
This commit is contained in:
Rachel Fenichel
2022-08-17 14:13:13 -04:00
committed by GitHub
parent e10bf99936
commit ffe6d55d5f
12 changed files with 36 additions and 89 deletions

View File

@@ -23,7 +23,6 @@ import * as dom from '../../utils/dom.js';
import * as parsing from '../../utils/parsing.js';
import {Svg} from '../../utils/svg.js';
import * as svgPaths from '../../utils/svg_paths.js';
import * as userAgent from '../../utils/useragent.js';
/** An object containing sizing and path information about outside corners. */
@@ -461,8 +460,11 @@ export class ConstantProvider {
this.START_POINT = svgPaths.moveBy(0, 0);
/** A field's text element's dominant baseline. */
this.FIELD_TEXT_BASELINE_CENTER = !userAgent.IE && !userAgent.EDGE;
/**
* A field's text element's dominant baseline. Pre-2022 this could be false
* for certain browsers.
*/
this.FIELD_TEXT_BASELINE_CENTER = true;
/** A dropdown field's border rect height. */
this.FIELD_DROPDOWN_BORDER_RECT_HEIGHT = this.FIELD_BORDER_RECT_HEIGHT;