mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Allow more error in bezier computation to fix random orange.
This commit is contained in:
parent
6b03502e2e
commit
5095db87e0
@ -403,7 +403,8 @@ function check_transition_value(func, start_time, end_time,
|
||||
else if (time_portion > 1)
|
||||
time_portion = 1;
|
||||
// Assume a small error since bezier computation can be off slightly.
|
||||
var value_portion = func(time_portion) + error_direction * 0.0001;
|
||||
// (This test's computation is probably more accurate than Mozilla's.)
|
||||
var value_portion = func(time_portion) + error_direction * 0.0005;
|
||||
if (value_portion < 0)
|
||||
value_portion = 0;
|
||||
else if (value_portion > 1)
|
||||
|
Loading…
Reference in New Issue
Block a user