Interface MouseStillDownHandler

All Superinterfaces:
EventHandler

public interface MouseStillDownHandler extends EventHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Repeating notification method for the user holding the left mouse button down over this canvas.
  • Method Details

    • onMouseStillDown

      void onMouseStillDown(MouseStillDownEvent event)
      Repeating notification method for the user holding the left mouse button down over this canvas.

      The mouseStillDown event is fired immediately when the mouse goes down. If the user holds the mouse down, after a pause of mouseStillDownInitialDelay, it will begin to fire repeatedly every mouseStillDownDelay milliseconds.

      This provides developers with a simple way to handle the common "repeated action" use case where a user can click a UI element to perform an action once, or click and hold to perform the action repeatedly.
      Examples of this include standard scrollbar button behavior and buttons to increase or decrease the value in a spinner type input element.

      This event is not native to JavaScript, but is provided by the ISC system.

      Parameters:
      event - the event