yishn / tikzcd-editor

A simple visual editor for creating commutative diagrams.

Home Page:https://tikzcd.yichuanshen.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unnecessary selections

ozguncagri opened this issue · comments

Sometimes drag operations makes you select unnecessary things on editor. It can be prevent with user-select: none kind of style for better user experience. A picture is worth a thousand words;

screen shot 2017-11-04 at 03 15 12

Thanks for editor BTW :)

Thank you! That's odd, I already have a user-select rule:

-moz-user-select: none;
user-select: none;

Which browser are you using? Maybe we need to add more vendor-specific CSS...

Maybe you should add another rule with -webkit prefix. Because I was trying it on Safari 11.0.1. I found this cross-browser solution on stack-overflow;

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}