xy/rgb "split" mode, dragging refinement

- xy/rgb split mode : different osc paths can be used for each parameters (the original path is still used for synchronization)

- removed pseudo-element overlay hack for dragging events
- drag events are launched by wrapper elements (inner elements are ignored via css's pointer-events property)
- no more boundingbox calculation for rotating knobs
- tiny mod in jquery.event.drag to preserve original element size in hijacked event object
- preparing for upcomming feature : absolute master dragging (one dragging motion to control all widgets)
This commit is contained in:
jean-emmanuel 2015-10-24 13:46:24 +02:00
parent a302e40605
commit 243b84bd13
8 changed files with 228 additions and 142 deletions

View file

@ -154,13 +154,20 @@ It can also be a self invoking function that returns an array of objects :
x:{min:0,max:1},
y:{min:0,max:1}
},
absolute:false // [bool] set to true for absolute value on touch/click instead of relative dragging
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging
split:false // [bool|object] sends separate osc messages for x and y axes
// if true : '/x' & '/y' will be appended to the widget's path
// or object : {x:'/osc_path_x', y:'/osc_path_y'}
```
- **rgb**
```
type:'rgb',
absolute:false // [bool] set to true for absolute value on touch/click instead of relative dragging
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging
split:false // [bool|object] sends separate osc messages for x and y axes
// if true : '/r', '/g' & '/b' will be appended to the widget's path
// or object : {r:'/osc_path_r', g:'/osc_path_g',b:'/osc_path_b'}
```
Variant of xy pad, it outputs rgb values between 0 and 255.