remove outdated files
This commit is contained in:
parent
a4ff3a36b9
commit
0f31b569bc
2 changed files with 0 additions and 95 deletions
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
// Update xShort or yShort value.
|
||||
export function calcSideProximity (inputItemX: number, winW: number) {
|
||||
let short = winW - inputItemX
|
||||
|
||||
if (short > winW / 2) {
|
||||
short = inputItemX
|
||||
}
|
||||
|
||||
return short
|
||||
}
|
||||
|
||||
|
||||
// Update inputItemX or inputItemY value.
|
||||
export function calcPosition (inputItemPosition: number, percent: number,
|
||||
short: number, win: number) {
|
||||
|
||||
// Is it close to the right/left side?
|
||||
if (percent > 0.75) {
|
||||
inputItemPosition = win - short
|
||||
}
|
||||
|
||||
// Is it not close to a side?
|
||||
if (percent < 0.75 && percent > 0.25) {
|
||||
inputItemPosition = win * percent
|
||||
}
|
||||
|
||||
return inputItemPosition
|
||||
}
|
||||
Loading…
Reference in a new issue