Skip to content

Commit

Permalink
Merge branch 'main' into Accessibility-Violations-Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srikant-ch5 committed Jan 21, 2025
2 parents fc8fc7c + c0dfa10 commit 7618951
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,6 @@ export default class CanvasController {

} else if (!this.mouseInContextToolbar && !this.mouseInObject) {
this.objectModel.closeContextMenu();
this.setFocusOnCanvas();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ export default class SVGCanvasRenderer {
}
})
.on("mouseenter", (d3Event, d) => {
if (this.isDragging()) {
if (this.isDragging() || this.svgCanvasTextArea.isEditingText()) {
return;
}

Expand Down Expand Up @@ -2505,7 +2505,11 @@ export default class SVGCanvasRenderer {
that.mouseOverLabelEditIcon = false;
that.hideEditIcon(this);
})
.on("mousedown mouseup", function(d3Event) {
CanvasUtils.stopPropagationAndPreventDefault(d3Event);
})
.on("click", function(d3Event, d) {
CanvasUtils.stopPropagationAndPreventDefault(d3Event);
displayTextArea(d3Event, d);
that.mouseOverLabelEditIcon = false;
that.hideEditIcon(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export default class SvgCanvasTextArea {
this.logger.log("Text area - focus");
data.autoSizeCallback(d3Event.target, data);
})
.on("mousedown click dblclick contextmenu", (d3Event, d) => {
.on("mousedown mouseenter mouseleave click dblclick contextmenu", (d3Event, d) => {
d3Event.stopPropagation(); // Allow default behavior to show system contenxt menu
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
display: flex;
> div:first-child {
width: 100%;
overflow-x: auto;
min-width: 0; // Prevent overflow issues
}
}
}

0 comments on commit 7618951

Please sign in to comment.