Skip to content

Commit

Permalink
Fix annoyance with textbox unselecting in chromium.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jul 9, 2023
1 parent d5323d1 commit af15add
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/scripts/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ function addMultilineWidget(node, name, opts, app) {
.multiplySelf(ctx.getTransform())
.translateSelf(margin, margin + y);

const scale = new DOMMatrix().scaleSelf(transform.a, transform.d)
Object.assign(this.inputEl.style, {
transformOrigin: "0 0",
transform: transform,
left: "0px",
top: "0px",
transform: scale,
left: `${transform.a + transform.e}px`,
top: `${transform.d + transform.f}px`,
width: `${widgetWidth - (margin * 2)}px`,
height: `${this.parent.inputHeight - (margin * 2)}px`,
position: "absolute",
Expand Down

0 comments on commit af15add

Please sign in to comment.