Remove goog.events.BrowserFeature dependency.

This commit is contained in:
Neil Fraser
2019-06-05 17:01:32 -07:00
committed by Neil Fraser
parent a18aa76e67
commit e8d8798ecf
3 changed files with 16 additions and 6 deletions

View File

@@ -27,9 +27,9 @@
goog.provide('Blockly.Scrollbar');
goog.provide('Blockly.ScrollbarPair');
goog.require('Blockly.Touch');
goog.require('Blockly.utils');
goog.require('goog.events.BrowserFeature');
goog.require('goog.math.Coordinate');
@@ -303,7 +303,7 @@ Blockly.Scrollbar.prototype.containerVisible_ = true;
* Scrollbars should be larger on touch devices.
*/
Blockly.Scrollbar.scrollbarThickness = 15;
if (goog.events.BrowserFeature.TOUCH_ENABLED) {
if (Blockly.Touch.TOUCH_ENABLED) {
Blockly.Scrollbar.scrollbarThickness = 25;
}