Basic housekeeping, as well as very basic work on per-channel !toke commands
This commit is contained in:
parent
dc01b8a15a
commit
575244ac53
22 changed files with 139 additions and 35 deletions
|
|
@ -228,7 +228,12 @@ class canopyUXUtils{
|
|||
}
|
||||
|
||||
calcWidth(px){
|
||||
return (px / window.innerWidth) * 100;
|
||||
//I cannot fucking believe they added a clamp function to CSS before JS...
|
||||
const width = (px / window.innerWidth) * 100;
|
||||
|
||||
//Little hacky but this ensures that if our click dragger tries to do something that it should absolutely never be doing
|
||||
//it'll be told to sit down, shut up, and fuck off.
|
||||
return width < 100 ? width : 20;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue