Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8106321

0-frame action() evaluated one too few times on 0-duration Timeline

XMLWordPrintable

      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.

            bchristi Brent Christian
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: