Document ability to toggle click-drag off

This commit is contained in:
Patrick Coffey 2017-08-15 16:48:27 -05:00
parent 95f875e8ba
commit e9c82dfe6c
No known key found for this signature in database
GPG key ID: 870BDD7A667DB73B

View file

@ -36,6 +36,16 @@ Emitted with the following info:
- `clientX` - the final mouse event's `clientX` value - `clientX` - the final mouse event's `clientX` value
- `clientY` - the final mouse event's `clientY` 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 ### Installation
#### Browser #### Browser