Class: module:view/viewScreens/ClickDrag

module:view/viewScreens/ClickDrag(screen, changes)

new module:view/viewScreens/ClickDrag(screen, changes)

ClickDrag gives draggable behavior to objects on a canvas. If anything changes, an item is added to the "changes" array. Calling screen.setEventHandlers(clickDrag.eventHandlers) sets the eventhandlers on the screen.
Parameters:
Name Type Description
screen Screen
changes Changes
Source:

Methods

(inner) clamp()

https://stackoverflow.com/a/24719569
Source: