fix(touch): Allow for multi-touch in OHIF (#5099)
This commit is contained in:
1 parent
2e7124bace
commit
1a6aa09a77
10 files changed
+63
-55
No files matched your search
@@ -16,8 +16,14 @@ function createTools(utilityModule) {
|
||||
active: [
|
||||
{ toolName: toolNames.WindowLevel, bindings: [{ mouseButton: Enums.MouseBindings.Primary }] },
|
||||
{ toolName: toolNames.Pan, bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }] },
|
||||
{ toolName: toolNames.Zoom, bindings: [{ mouseButton: Enums.MouseBindings.Secondary }] },
|
||||
{ toolName: toolNames.StackScroll, bindings: [{ mouseButton: Enums.MouseBindings.Wheel }] },
|
||||
{
|
||||
toolName: toolNames.Zoom,
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }, { numTouchPoints: 2 }],
|
||||
},
|
||||
{
|
||||
toolName: toolNames.StackScroll,
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Wheel }, { numTouchPoints: 3 }],
|
||||
},
|
||||
],
|
||||
passive: [
|
||||
{
|
||||
@@ -178,7 +184,7 @@ function initVolume3DToolGroup(extensionManager, toolGroupService) {
|
||||
},
|
||||
{
|
||||
toolName: toolNames.Zoom,
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }],
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }, { numTouchPoints: 2 }],
|
||||
},
|
||||
{
|
||||
toolName: toolNames.Pan,
|
||||
|
||||
Reference in new issue
Block a user