We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 735f8f2 commit 2645334Copy full SHA for 2645334
draftlogs/6563_fix.md
@@ -0,0 +1 @@
1
+ - fix condition of `plotly_click` to fire it on touch devices [[#6563](https://github.com/plotly/plotly.js/pull/6563)]
src/plots/gl3d/scene.js
@@ -454,9 +454,7 @@ proto.render = function() {
454
pointData.bbox = bbox[0];
455
}
456
457
- if(selection.buttons && selection.distance < 5 && !tabletmode) {
458
- gd.emit('plotly_click', eventData);
459
- } else if(tabletmode && selection.distance < 5) {
+ if(selection.distance < 5 && (selection.buttons || tabletmode)) {
460
gd.emit('plotly_click', eventData);
461
} else {
462
gd.emit('plotly_hover', eventData);
0 commit comments