Skip to content

Commit a798191

Browse files
committed
Revert "Improve performance of renderer.pick() calls"
This reverts commit d989824. Different approach will be used to fix regression regarding text bubbles
1 parent d989824 commit a798191

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/scaffolding/scaffolding.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,7 @@ class Scaffolding extends EventTarget {
133133

134134
_startDragging (x, y) {
135135
if (this._draggingId) return;
136-
const drawableId = this.renderer.pick(
137-
x,
138-
y,
139-
1,
140-
1,
141-
// Disregard pen, video sensing, and other drawables added by extensions.
142-
this.vm.runtime.targets.map(i => i.drawableID)
143-
);
136+
const drawableId = this.renderer.pick(x, y);
144137
if (drawableId === -1 || drawableId === false) return;
145138
const targetId = this.vm.getTargetIdForDrawableId(drawableId);
146139
if (targetId === null) return;

0 commit comments

Comments
 (0)