mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Fix 55 warnings related to flyouts. (#3211)
* Fix 55 warnings related to flyouts.
This commit is contained in:
@@ -627,9 +627,12 @@ Blockly.Scrollbar.prototype.createDom_ = function(opt_class) {
|
||||
'ry': radius
|
||||
},
|
||||
this.svgGroup_);
|
||||
this.workspace_.getThemeManager().subscribe(this.svgHandle_, 'scrollbar', 'fill');
|
||||
this.workspace_.getThemeManager().subscribe(this.svgHandle_, 'scrollbarOpacity', 'fill-opacity');
|
||||
Blockly.utils.dom.insertAfter(this.outerSvg_, this.workspace_.getParentSvg());
|
||||
this.workspace_.getThemeManager().subscribe(
|
||||
this.svgHandle_, 'scrollbar', 'fill');
|
||||
this.workspace_.getThemeManager().subscribe(
|
||||
this.svgHandle_, 'scrollbarOpacity', 'fill-opacity');
|
||||
Blockly.utils.dom.insertAfter(this.outerSvg_,
|
||||
this.workspace_.getParentSvg());
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -711,7 +714,8 @@ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) {
|
||||
e.stopPropagation();
|
||||
return;
|
||||
}
|
||||
var mouseXY = Blockly.utils.mouseToSvg(e, this.workspace_.getParentSvg(),
|
||||
var mouseXY = Blockly.utils.mouseToSvg(e,
|
||||
this.workspace_.getParentSvg(),
|
||||
this.workspace_.getInverseScreenCTM());
|
||||
var mouseLocation = this.horizontal_ ? mouseXY.x : mouseXY.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user