Skip to content

Commit

Permalink
Merge pull request #831 from vorth/labels-isolate
Browse files Browse the repository at this point in the history
Labels are now isolated, so always behind the context menu
  • Loading branch information
vorth authored Mar 18, 2024
2 parents d98ea63 + 6c7f9ac commit 8302695
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions online/src/viewer/labels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Labels = (props) =>
onMount( () => {
labelRenderer = new CSS2DRenderer();
const labelsElem = labelRenderer.domElement;
labelsElem.style.isolation = 'isolate';
labelsElem.style.position = 'absolute';
labelsElem.style.pointerEvents = 'none';
labelsElem.style.inset = '0px';
Expand Down

0 comments on commit 8302695

Please sign in to comment.