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

Timeline implementation can't set key values to current value on play()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: fx1.2
    • Component/s: javafx
    • Labels:

      Description


      There's a lot more strange bugs in the timeline then that dude, I'm not sure it was ever really finished.

      Best one is having to rebuild the Timeline if you want to do this:

      var mytimeline : Timeline = Timeline {
      keyFrames: Keyframe {
      time: 5s
      values: [x => 100 tween LINEAR]
      }
      }

      Now if you set x = 50 you would expect it to animate from 50 to 100 in 5 seconds, now if you change x to 10 you would expect x to animate from 10 to 100 in 5 seconds.

      No, sorry you have rebuild the Timeline again if you do this sort of thing. This isn't the expected behavior from an animation interactive Timeline stand point- there for its the wrong behavior. There is a workaround/hack you can do thats to rebuilding the Timeline each time by wrapping it in a function:

        Attachments

        1. App.fx
          2 kB
        2. Main.fx
          0.3 kB

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              coliverjfx Chris Oliver (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: