MikaFil commited on
Commit
1a2b495
·
verified ·
1 Parent(s): 8f9d658

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +1 -1
viewer.js CHANGED
@@ -166,7 +166,7 @@ export async function initializeViewer(config, instanceId) {
166
  opts.graphicsDevice = device;
167
  opts.mouse = new pc.Mouse(canvas);
168
  opts.touch = new pc.TouchDevice(canvas);
169
- opts.keyboard = new pc.Keyboard(window);
170
  opts.componentSystems = [
171
  pc.RenderComponentSystem,
172
  pc.CameraComponentSystem,
 
166
  opts.graphicsDevice = device;
167
  opts.mouse = new pc.Mouse(canvas);
168
  opts.touch = new pc.TouchDevice(canvas);
169
+ opts.keyboard = new pc.Keyboard(canvas);
170
  opts.componentSystems = [
171
  pc.RenderComponentSystem,
172
  pc.CameraComponentSystem,