Skip to content

Commit 4d67fa4

Browse files
committed
Fix panning
1 parent 741bfb1 commit 4d67fa4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/traces/scattergl/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ var attrs = module.exports = overrideAll({
3838
].join(' ')
3939
}),
4040

41+
hovertext: scatterAttrs.hovertext,
42+
4143
textposition: scatterAttrs.textposition,
4244
textfont: scatterAttrs.textfont,
4345

src/traces/scattergl/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ function sceneUpdate(gd, subplot) {
210210

211211
// apply new option to all regl components (used on drag)
212212
scene.update = function update(opt) {
213+
var i, j;
213214
var opts = new Array(scene.count);
214-
for(var i = 0; i < scene.count; i++) {
215+
for(i = 0; i < scene.count; i++) {
215216
opts[i] = opt;
216217
}
217218

@@ -221,9 +222,11 @@ function sceneUpdate(gd, subplot) {
221222
if(scene.error2d) scene.error2d.update(opts.concat(opts));
222223
if(scene.select2d) scene.select2d.update(opts);
223224
if(scene.glText) {
224-
// scene.glText.forEach(function (text) {
225-
// text.update(opts);
226-
// })
225+
for(i = 0; i < scene.glText.length; i++) {
226+
for(j = 0; j < scene.glText[i].length; j++) {
227+
scene.glText[i][j].update(opts[i]);
228+
}
229+
}
227230
}
228231

229232
scene.draw();

0 commit comments

Comments
 (0)