fix knob's absolute touch behaviour, there was a small coordinates calcul error because of the pips container pushing the knob's center above the wrapper's center.

This commit is contained in:
jean-emmanuel 2016-03-29 13:38:29 +02:00
parent a41d9f8aac
commit 6f827962e2
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -22,14 +22,15 @@
overflow: hidden;
.knob-wrapper {
margin:15rem auto 5rem;
padding:15rem 0 20rem;
margin: 0 auto;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 0;
position: relative;
cursor: -webkit-grab;
@ -38,7 +39,7 @@
}
&.no-pip {
margin-bottom: 0;
padding-bottom: 0;
.pips {
display: none;
}
@ -156,6 +157,7 @@
.pips {
width:100%;
pointer-events: none;
position: absolute;
}
.pip {
font-size:11rem;