mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-02 13:56:39 +00:00
js/ui/custom.js: allow deletion of brushes w/ <Shift> + LMB.
This commit is contained in:
parent
2106b77586
commit
7e264f8a8b
@ -9,9 +9,14 @@ var custom = (function(){
|
|||||||
new_brush.append(rapper)
|
new_brush.append(rapper)
|
||||||
custom_rapper.appendChild(rapper)
|
custom_rapper.appendChild(rapper)
|
||||||
// store in localstorage?
|
// store in localstorage?
|
||||||
rapper.addEventListener("click", function(){
|
rapper.addEventListener("click", function(e){
|
||||||
// load this brush
|
if (e.shiftKey) {
|
||||||
exports.load(new_brush)
|
rapper.parentNode.removeChild(rapper)
|
||||||
|
delete new_brush
|
||||||
|
} else {
|
||||||
|
// load this brush
|
||||||
|
exports.load(new_brush)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user