Browse Source

Canvas3dInteractionHelper.maxFps = 30
- makes the interaction feel more responsive

David Sehnal 5 years ago
parent
commit
b8133b4300
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-canvas3d/helper/interaction-events.ts

+ 1 - 1
src/mol-canvas3d/helper/interaction-events.ts

@@ -111,7 +111,7 @@ export class Canvas3dInteractionHelper {
         this.ev.dispose();
     }
 
-    constructor(private canvasIdentify: Canvas3D['identify'], private getLoci: Canvas3D['getLoci'], input: InputObserver, private maxFps: number = 15) {
+    constructor(private canvasIdentify: Canvas3D['identify'], private getLoci: Canvas3D['getLoci'], input: InputObserver, private maxFps: number = 30) {
         input.move.subscribe(({x, y, inside, buttons, button, modifiers }) => {
             if (!inside) return;
             this.move(x, y, buttons, button, modifiers);