Open GoogleCodeExporter opened 9 years ago
Sorry, there was a little mistake in the filter. Correct version:
object AnimatingFilterIssue {
def main(args: Array[String]) {
val prop = new MutableProperty[Double]
with FilteredProperty[Double]
with AnimatingProperty[Double]
{
animator = new LinearNumericAnimator(1)
val filter = (value: Double) => Math.max(0, Math.min(value, 1))
val filterType = FilterType.Modify
}
prop := 1.5;
prop.waitForTarget();
println("finished") //unreachable because animation target was filtered
}
}
Original comment by teenriot...@googlemail.com
on 15 Jan 2012 at 11:43
Original issue reported on code.google.com by
teenriot...@googlemail.com
on 15 Jan 2012 at 11:36