multixy: add smart snap option

This commit is contained in:
jean-emmanuel 2016-11-17 20:33:45 +01:00
parent f75b5cc17d
commit 33e4e3f3c6
4 changed files with 39 additions and 3 deletions

View file

@ -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;
}
}
}
}