mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fix pencil size +/- buttons broken from upstream, apply brush preview snapping to
rectangle tool, fix pencil broken by merge
This commit is contained in:

committed by
Théo (Lattay) Cavignac

parent
dd461da675
commit
05066d8cb1
@ -5,13 +5,13 @@ on('click','pencil-button', function(){
|
||||
|
||||
//pencil bigger
|
||||
on('click','pencil-bigger-button', function(){
|
||||
brushSize++;
|
||||
pencilSize++;
|
||||
updateCursor();
|
||||
}, false);
|
||||
|
||||
//pencil smaller
|
||||
on('click','pencil-smaller-button', function(){
|
||||
if(brushSize > 1) brushSize--;
|
||||
if(pencilSize > 1) pencilSize--;
|
||||
updateCursor();
|
||||
}, false);
|
||||
|
||||
|
Reference in New Issue
Block a user