mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user