Mouse/touch dragging handler rewritten

now using event delegation and direct handler calls instead of DOM event bubbling whenever it's possible
This commit is contained in:
jean-emmanuel 2016-04-07 15:49:30 +02:00
parent 3207b835ba
commit 0a868a71b5
20 changed files with 502 additions and 322 deletions

View file

@ -8,10 +8,6 @@
align-items: center;
flex-shrink: 0;
.input {
margin-top:-5rem;
}
&.compact {
.pips {
display: none;
@ -46,7 +42,7 @@
overflow: hidden;
.knob-wrapper {
padding:15rem 0 20rem;
padding:15rem 0 15rem;
margin: 0 auto;
width: 100%;
height: 100%;

View file

@ -87,6 +87,7 @@
bottom:0;
background-color: red;
opacity: .75;
pointer-events: none;
&:before, &:after {
content:"";
position: absolute;
@ -142,6 +143,7 @@
bottom:0;
opacity: 0.5;
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
pointer-events: none;
}
&:active {
cursor: -webkit-grabbing;