Skip to content

Commit c9b6177

Browse files
committed
Add selection fix
1 parent 7e29a41 commit c9b6177

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scatter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ Scatter.prototype.draw = function (...args) {
235235
args = args[0]
236236
}
237237

238+
// FIXME: remove once https://github.com/regl-project/regl/issues/474 resolved
239+
this.regl._refresh()
240+
238241
if (args.length) {
239242
for (let i = 0; i < args.length; i++) {
240243
this.drawItem(i, args[i])
@@ -252,7 +255,7 @@ Scatter.prototype.draw = function (...args) {
252255

253256
// draw specific scatter group
254257
Scatter.prototype.drawItem = function (id, els) {
255-
let { groups, } = this
258+
let { groups } = this
256259
let group = groups[id]
257260

258261
// debug viewport
@@ -342,10 +345,7 @@ Scatter.prototype.getMarkerDrawOptions = function(markerId, group, elements) {
342345
markerTexture: this.markerTextures[markerId],
343346
activation: elements ? selectionBuffer : activation[markerId],
344347
offset: from,
345-
count: to - from,
346-
347-
// send tree elements
348-
elements: group.elements
348+
count: to - from
349349
}))
350350
}
351351

0 commit comments

Comments
 (0)