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

Slider automatically resets to far left (0) when knob is dragged to the far right (max).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • None
    • javafx
    • javafx 1.2-dev Solaris and Windows

      This seems to happen when the mouse is moved past the end of the visible scroll bar.

      == Code
      import javafx.stage.Stage;
      import javafx.scene.Scene;
      import javafx.scene.control.Slider;

      var lval = 1.0 on replace {
          println("new value = {lval}");
      }

      Stage {
          title: "Slider Knob bug"
          width: 250
          height: 80
          scene: Scene {
              content: Slider {
                  max: 1.0
                  value: bind lval with inverse;
              }
          }
      }

      == Output
      ....
      Adjusting value to position 0.99248123
      posValue = 0.99248123
      new value = 1.0
      Adjusting value to position 1.037594
      posValue = 1.037594
      new value = 0.0

            gramachasunw Girish Ramachandran (Inactive)
            jclarke Jim Clarke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: