Skip to content

Commit

Permalink
Fix - test if tooltip handling allowed in frame 3D mode
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 24, 2023
1 parent e64bc51 commit 50d3a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/hist/hist3d.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,10 @@ function create3DControl(fp) {

fp.control.processMouseMove = function(intersects) {
let tip = null, mesh = null, zoom_mesh = null;
const handle_tooltip = frame_painter.isTooltipAllowed();

for (let i = 0; i < intersects.length; ++i) {
if (isFunc(intersects[i].object?.tooltip)) {
if (handle_tooltip && isFunc(intersects[i].object?.tooltip)) {
tip = intersects[i].object.tooltip(intersects[i]);
if (tip) { mesh = intersects[i].object; break; }
} else if (intersects[i].object?.zoom && !zoom_mesh)
Expand Down

0 comments on commit 50d3a5d

Please sign in to comment.