Skip to content

Commit 794ab72

Browse files
authored
Fix text selection issues in chrome (#425)
Chrome's default selection behavior when pressing the shift key messes with styles/selection hightlighting in the diagram By setting user-select:none for the diagram svg we can fix this issue. Default html text selection does not work for svg text elements anyways, so this change does not break any existing behavior.
1 parent daca681 commit 794ab72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/client/css/glsp-sprotty.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
247247
border-style: solid;
248248
border-width: 1px;
249249
border-color: #bbb;
250+
user-select: none;
250251
}
251252

252253
.sprotty text {

0 commit comments

Comments
 (0)