Fix pencil size +/- buttons broken from upstream, apply brush preview snapping to

rectangle tool, fix pencil broken by merge
This commit is contained in:
Theo Cavignac
2020-04-12 11:39:37 +02:00
committed by Théo (Lattay) Cavignac
parent dd461da675
commit 05066d8cb1
3 changed files with 22 additions and 15 deletions

View File

@ -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);