dragSpeed
Type
property
Summary
Specifies the speed of the drag command.
Syntax
set the dragSpeed to <pixelsPerSecond>
Description
Use the dragSpeed property to control the speed of the drag command.
The dragSpeed specifies how many pixels per second the drag command moves.
The setting of the dragSpeed affects the smoothness of drags made with some of the paint tools (such as the Spray Can tool) whose action is speed-dependent.
If the dragSpeed is zero, the drag command moves as fast as possible. Dragging with the dragSpeed set to zero is equivalent to clicking the start location and immediately releasing the mouse button at the end location. This means you cannot drag shapes other than a straight line if the dragSpeed is zero.
Examples
set the dragSpeed to 10
Value
Name | Type | Description |
---|---|---|
value | The dragSpeed is an integer between zero and 65535. By default, the dragSpeed property is set to zero. It is reset to zero when no handlers are executing. |
Related
function: tool
glossary: property, mouse button, paint tool, command, handler, execute
keyword: integer
property: pixels, moveSpeed, dragDelta
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile