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

Provide a hysteresisFailed flag for mouse events

XMLWordPrintable

      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).

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

              Created:
              Updated:
              Resolved:
              Imported: