This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathdrag.lcdoc
More file actions
56 lines (37 loc) · 1.35 KB
/
drag.lcdoc
File metadata and controls
56 lines (37 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: drag
Type: command
Syntax: drag [button <number>] from <start> to <end> [with <key> [, <key> [<key>]]]
Summary:
Simulates a mouse click and drag.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
drag from "120,89" to "180,2"
Example:
drag from the clickLoc to the loc of button "Trash"
Example:
drag button 1 from "500,200" to tSavedLoc with shiftKey
Parameters:
number:
The number of a mouse button. If you don't specify a number, button 1 is
used.
start:
Any expression that evaluates to a point--a vertical and horizontal
distance from the top left of the current stack, separated by a comma.
end:
Any expression that evaluates to a point.
key:
One of commandKey, controlKey, optionKey, or shiftKey. You can specify
up to three keys, separated by commas. (On Windows and Unix, commandKey
indicates the Control key.)
Description:
Use the <drag> <command> to paint with the <paint tool|paint tools>.
You can use the <drag> <command> to move a <control>, but it is more
efficient to use the <move> <command> instead.
The <dragSpeed> <property> determines how fast the drag motion is.
References: grab (command), choose (command), move (command),
command (glossary), property (glossary), paint tool (glossary),
control (keyword), dragDelta (property), dontResize (property),
dragSpeed (property)
Tags: ui