API Docs for: 7.2
Show:

MQA.TileMapDragDelegate Class

Module: MQA

A TileMapDragDelegate handles all drag and click operations for a TileMap instance.

Properties

map

MQA.TileMap

Reference to the parent TileMap instance.

startedToDrag

Boolean

Tracks if the map started to drag.

Methods

createPanFunction

(
  • xFactor
  • yFactor
)
private

Generator function for creating pan functions in various directions. The functions generated will have the 'this' context be the TileMap instance.

Parameters:

  • xFactor Integer
  • yFactor Integer

doubleClick

()

Handles a dblclick event on the map

dragCancelled

()

Handles cancel drag

dragEnd

()

Handles ending of dragging

dragMove

()

Handles drag movements

dragStart

()

Handles that start of dragging and changes curror