-
Bug
-
Resolution: Fixed
-
P2
-
None
-
Vista, Franca, 6u11
The following test case demonstrates the bug - the action should be called 3 times, but is only called twice.
---
import javafx.animation.*;
var testAnim = Timeline {
repeatCount: 3
keyFrames: [
KeyFrame {
time: 0ms
action: function() {
println("Keyframe called");
}
},
]
}
testAnim.play();
---
This bug seems to be limited to 0-duration Timelines; if a KeyFrame is added with any other time value, the 0-frame action() is executed as expected.
---
import javafx.animation.*;
var testAnim = Timeline {
repeatCount: 3
keyFrames: [
KeyFrame {
time: 0ms
action: function() {
println("Keyframe called");
}
},
]
}
testAnim.play();
---
This bug seems to be limited to 0-duration Timelines; if a KeyFrame is added with any other time value, the 0-frame action() is executed as expected.
- duplicates
-
JDK-8106682 Timeline with only a 0ms KeyFrame fails to play
-
- Closed
-
- relates to
-
JDK-8108185 Changing the value of a bound time variable of a KeyFrame causes autoReverse behavior to fail
-
- Closed
-
-
JDK-8107970 Animation drops frames but repeats keyframes
-
- Closed
-