Fix spacing in 'You clicked on' console log
This commit is contained in:
parent
1e5ce914a2
commit
00710f3347
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user