mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Remove goog.events.BrowserFeature dependency.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user