editor: fix colorpicker dragend handler (dragend doesn't bubble up anymore, it needs to be caught for all 3 subwidgets)
This commit is contained in:
parent
7d38418a66
commit
c450c6133c
2 changed files with 6 additions and 2 deletions
|
|
@ -37,10 +37,13 @@ class ColorPicker extends UiWidget {
|
|||
this.trigger('change', {preventHistory: true})
|
||||
})
|
||||
|
||||
this.rgb.on('dragend', (e)=>{
|
||||
var dragEndCb = (e)=>{
|
||||
this.value = chroma(this.rgb.value).hex()
|
||||
this.trigger('change')
|
||||
})
|
||||
}
|
||||
this.rgb.pad.on('dragend', dragEndCb)
|
||||
this.rgb.hue.on('dragend', dragEndCb)
|
||||
this.rgb.alpha.on('dragend', dragEndCb)
|
||||
|
||||
|
||||
this.opened = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue