Trait

com.raquo.domtypes.generic.defs.eventProps

PointerEventProps

Related Doc: package eventProps

Permalink

trait PointerEventProps[EP[_ <: DomEvent], DomEvent, DomPointerEvent <: DomEvent, DomElementPointerEvent <: DomPointerEvent] extends AnyRef

Most of today's web content assumes the user's pointing device will be a mouse. However, since many devices support other types of pointing input devices, such as pen/stylus and touch surfaces, extensions to the existing pointing device event models are needed and pointer events address that need.

Pointer events are DOM events that are fired for a pointing device. They are designed to create a single DOM event model to handle pointing input devices such as a mouse, pen/stylus or touch (such as one or more fingers). The pointer is a hardware-agnostic device that can target a specific set of screen coordinates. Having a single event model for pointers can simplify creating Web sites and applications and provide a good user experience regardless of the user's hardware. However, for scenarios when device-specific handling is desired, pointer events defines a property to inspect the device type which produced the event.

The events needed to handle generic pointer input are analogous to mouse events (mousedown/pointerdown, mousemove/pointermove, etc.). Consequently, pointer event types are intentionally similar to mouse event types. Additionally, a pointer event contains the usual properties present in mouse events (client coordinates, target element, button states, etc.) in addition to new properties for other forms of input: pressure, contact geometry, tilt, etc. In fact, the PointerEvent interface inherits all of the MouseEvent's properties thus facilitating migrating content from mouse events to pointer events.

MDN

Self Type
PointerEventProps[EP, DomEvent, DomPointerEvent, DomElementPointerEvent] with EventPropBuilder[EP, DomEvent]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PointerEventProps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  9. lazy val gotPointerCapture: EP[DomElementPointerEvent]

    Permalink

    fired when an element receives pointer capture.

    fired when an element receives pointer capture.

    MDN

  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. lazy val lostPointerCapture: EP[DomElementPointerEvent]

    Permalink

    Fired after pointer capture is released for a pointer.

    Fired after pointer capture is released for a pointer.

    MDN

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. lazy val onPointerCancel: EP[DomElementPointerEvent]

    Permalink

    a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the related device is deactived).

    a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the related device is deactived).

    MDN

  17. lazy val onPointerDown: EP[DomElementPointerEvent]

    Permalink

    fired when a pointer becomes active.

    fired when a pointer becomes active.

    MDN

  18. lazy val onPointerEnter: EP[DomElementPointerEvent]

    Permalink

    fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover (see pointerdown).

    fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover (see pointerdown).

    MDN

  19. lazy val onPointerLeave: EP[DomElementPointerEvent]

    Permalink

    fired when a pointing device is moved out of the hit test boundaries of an element.

    fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer.

    MDN

  20. lazy val onPointerMove: EP[DomElementPointerEvent]

    Permalink

    fired when a pointer changes coordinates.

    fired when a pointer changes coordinates.

    MDN

  21. lazy val onPointerOut: EP[DomElementPointerEvent]

    Permalink

    fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.

    fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.

    MDN

  22. lazy val onPointerOver: EP[DomElementPointerEvent]

    Permalink

    fired when a pointing device is moved into an element's hit test boundaries.

    fired when a pointing device is moved into an element's hit test boundaries.

    MDN

  23. lazy val onPointerUp: EP[DomElementPointerEvent]

    Permalink

    fired when a pointer is no longer active.

    fired when a pointer is no longer active.

    MDN

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped