Skip to content

Commit 36e56f8

Browse files
committed
fix: Fix builds
1 parent 123c870 commit 36e56f8

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

plugins/scroll-options/src/ScrollBlockDragger.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class ScrollBlockDragger extends Blockly.dragging.Dragger {
190190
if (!isAutoScrollable(this.draggable)) return;
191191

192192
const mouse = Blockly.utils.svgMath.screenToWsCoordinates(
193-
this.workspace,
193+
this.draggable.workspace,
194194
new Blockly.utils.Coordinate(e.clientX, e.clientY),
195195
);
196196

@@ -206,7 +206,9 @@ export class ScrollBlockDragger extends Blockly.dragging.Dragger {
206206
};
207207

208208
// Get ViewMetrics in workspace coordinates.
209-
const viewMetrics = this.workspace.getMetricsManager().getViewMetrics(true);
209+
const viewMetrics = this.draggable.workspace
210+
.getMetricsManager()
211+
.getViewMetrics(true);
210212

211213
// Get possible scroll velocities based on the location of both the block
212214
// and the mouse.
@@ -229,7 +231,7 @@ export class ScrollBlockDragger extends Blockly.dragging.Dragger {
229231

230232
// Update the autoscroll or start a new one.
231233
this.activeAutoScroll_ =
232-
this.activeAutoScroll_ || new AutoScroll(this.workspace, this);
234+
this.activeAutoScroll_ || new AutoScroll(this.draggable.workspace, this);
233235
this.activeAutoScroll_.updateProperties(overallScrollVector);
234236
}
235237

plugins/theme-highcontrast/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export default Blockly.Theme.defineTheme('highcontrast', {
9090
componentStyles: {
9191
selectedGlowColour: '#000000',
9292
// selectedGlowSize: 1,
93-
replacementGlowColour: '#000000',
9493
},
9594
fontStyle: {
9695
family: undefined, // Use default font-family.

plugins/workspace-backpack/src/backpack_helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function registerEmptyBackpack(workspace: Blockly.WorkspaceSvg) {
4646
workspace,
4747
},
4848
weight: 0,
49+
id: 'empty_backpack',
4950
};
5051
menuOptions.push(backpackOptions);
5152
};

0 commit comments

Comments
 (0)