Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TouchDelegate

The class supports for touch-based HTML5 drag/drop/tap/doubletap/longtap events.

The purpose of this class is to enable using existing, standard HTML5 drag/drop code on mobile devices running IOS or Android. The class will automatically start monitoring touch events and will raise the HTML5 drag drop events (dragstart, dragenter, dragleave, drop, dragend) which should be handled by the application.

For details and examples on HTML drag and drop, see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Drag_operations.

Hierarchy

  • TouchDelegate

Index

Constructors

Methods

Constructors

constructor

Methods

setDragImage

  • setDragImage(img: any, offsetX: any, offsetY: any): void
  • Parameters

    • img: any
    • offsetX: any
    • offsetY: any

    Returns void