Explorar el Código

center/focus with left+alt

Alexander Rose hace 5 años
padre
commit
e7eeb8cb55
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/mol-plugin/behavior/dynamic/camera.ts

+ 4 - 1
src/mol-plugin/behavior/dynamic/camera.ts

@@ -16,7 +16,10 @@ const M = ModifiersKeys
 const Trigger = Binding.Trigger
 
 const DefaultFocusLociBindings = {
-    clickCenterFocus: Binding([Trigger(B.Flag.Auxilary, M.create())], 'Center and focus the clicked element using ${triggers}.'),
+    clickCenterFocus: Binding([
+        Trigger(B.Flag.Auxilary, M.create()),
+        Trigger(B.Flag.Primary, M.create({ alt: true }))
+    ], 'Center and focus the clicked element using ${triggers}.'),
 }
 const FocusLociParams = {
     minRadius: PD.Numeric(8, { min: 1, max: 50, step: 1 }),