Feature/adaptive crossfade window #50
@@ -15,6 +15,11 @@
|
|||||||
const WINDOW_RATIO = 1 / 3;
|
const WINDOW_RATIO = 1 / 3;
|
||||||
/**
|
/**
|
||||||
* Smallest band for a non-empty line — guarantees at least one crossfading char.
|
* Smallest band for a non-empty line — guarantees at least one crossfading char.
|
||||||
|
*
|
||||||
|
* Accepted tradeoff: short lines now get a band of 1–2, so a fast slider drag
|
||||||
|
* can unmount a char before its ~100ms opacity crossfade finishes, a slight pop.
|
||||||
|
* Worth it for the "bulk committed, small band shimmering" look on short lines;
|
||||||
|
* raising this trades that pop back for less committed bulk.
|
||||||
*/
|
*/
|
||||||
const WINDOW_MIN = 1;
|
const WINDOW_MIN = 1;
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user