Fix spacing in 'You clicked on' console log

This commit is contained in:
Sarah Otts 2020-11-10 09:28:26 -05:00 committed by GitHub
parent 1e5ce914a2
commit 00710f3347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ canvas.addEventListener('mousemove', event => {
canvas.addEventListener('click', event => {
const mousePos = getMousePosition(event, canvas);
const pickID = renderer.pick(mousePos.x, mousePos.y);
console.log(`You clicked on ${(pickID < 0 ? 'nothing' : `ID#${pickID}`)}`);
console.log(`You clicked on ${(pickID < 0 ? 'nothing' : `ID# ${pickID}`)}`);
if (pickID >= 0) {
console.dir(renderer.extractDrawable(pickID, mousePos.x, mousePos.y));
}