cam op pop Y offset adaptive to locatio on screen
This commit is contained in:
parent
1443afb75c
commit
f3478c6c9c
2 changed files with 5 additions and 2 deletions
|
|
@ -554,6 +554,10 @@ CAM.init = function(kiri, api) {
|
|||
poprec.use(rec);
|
||||
hoveredOp = el;
|
||||
if (!clock) {
|
||||
const { innerHeight } = window;
|
||||
const { pageY } = ev;
|
||||
const PY = (pageY / innerHeight) * 90;
|
||||
poprec.div.style.transform = `translateY(${-PY}%)`;
|
||||
el.appendChild(poprec.div);
|
||||
poprec.addNote();
|
||||
}
|
||||
|
|
@ -1629,7 +1633,6 @@ function createPopOp(type, map) {
|
|||
let type = val.type;
|
||||
let from = map[key];
|
||||
if (rec[key] === undefined && type && from) {
|
||||
let newval = current.process[from];
|
||||
rec[key] = current.process[from];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1222,7 +1222,7 @@ th, tr, td, label {
|
|||
padding: 5px 0 0 0;
|
||||
}
|
||||
.cam-pop-op {
|
||||
top: 0;
|
||||
top: 50%;
|
||||
right: calc(100% + 4px);
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
|
|
|
|||
Loading…
Reference in a new issue