multixy: add smart snap option
This commit is contained in:
parent
f75b5cc17d
commit
33e4e3f3c6
4 changed files with 39 additions and 3 deletions
|
|
@ -122,6 +122,9 @@
|
|||
width:calc(100% - calc(var(--point-size) * 2 + 2rem));
|
||||
height:calc(100% - calc(var(--point-size) * 2 + 2rem));
|
||||
pointer-events: none;
|
||||
&.active {
|
||||
pointer-events: none!important;
|
||||
}
|
||||
.wrapper {
|
||||
background: transparent;
|
||||
}
|
||||
|
|
@ -144,7 +147,12 @@
|
|||
border-radius: calc(var(--point-size) * 2 + 4rem);
|
||||
cursor: -webkit-grab;
|
||||
opacity: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
&.snap > .pad {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue