Skip to content

Commit

Permalink
Also enable trailing IMG hack for Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Aug 18, 2021
1 parent 5339e19 commit 7e0ddfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewdesc.js
Expand Up @@ -1237,8 +1237,8 @@ class ViewTreeUpdater {
if (!lastChild || // Empty textblock
!(lastChild instanceof TextViewDesc) ||
/\n$/.test(lastChild.node.text)) {
// Avoid a bug in Safari's cursor drawing (#1165)
if (browser.safari && lastChild && lastChild.dom.contentEditable == "false")
// Avoid bugs in Safari's cursor drawing (#1165) and Chrome's mouse selection (#1152)
if ((browser.safari || browser.chrome) && lastChild && lastChild.dom.contentEditable == "false")
this.addHackNode("IMG")
this.addHackNode("BR")
}
Expand Down

0 comments on commit 7e0ddfa

Please sign in to comment.