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

Provide a hysteresisFailed flag for mouse events

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx

      Description

      Some applications want to perform a different action when mouse is dragged and when it is clicked. In such cases, click should still use hysteresis (AKA Smudge Factor). To make this easy, mouse event should have a hysteresisFailed flag that will tell whether mouse did move far away from the point where it was pressed or not (will be true if it did).

      The application can then easily use mouse dragged handler with "if (hysteresisFailed=true)" and mouse clicked handler with "if (hysteresisFailed=false)".

      The threshold distance would reflect native system settings (we are using it already internally for double-click generation).

        Attachments

          Activity

            People

            Assignee:
            psafrata Pavel Šafrata
            Reporter:
            psafrata Pavel Šafrata
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: