Document ability to toggle click-drag off
This commit is contained in:
parent
95f875e8ba
commit
e9c82dfe6c
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -36,6 +36,16 @@ Emitted with the following info:
|
|||
- `clientX` - the final mouse event's `clientX` value
|
||||
- `clientY` - the final mouse event's `clientY` value
|
||||
|
||||
### Applying click-drag conditionally
|
||||
You can conditionally apply `click-drag` behaviors by specifying an `enabled`
|
||||
attribute in your `click-drag` property:
|
||||
|
||||
```javascript
|
||||
...
|
||||
<a-sphere click-drag="enabled: false" position="0 1.25 -1" radius="1.25" color="#EF2D5E"></a-sphere>
|
||||
...
|
||||
```
|
||||
|
||||
### Installation
|
||||
|
||||
#### Browser
|
||||
|
|
Loading…
Reference in a new issue