View in #cornerstone3d on Slack
@Andy_McGunagle: Is it possible to bind the ZoomTool to the trackpad pinching gesture? I’ve tried all the MouseBinding options (Auxiliary, Wheel, Wheel_Primary) and none seem to respond to this gesture.
I have the ZoomTool working in general - just not with the trackpad pinch. I’m on a 2023 MacBook M2 Pro, if that makes any difference. Thanks!
import { Enums, Types } from "@cornerstonejs/tools";
import { ToolName } from ".";
export const toolBindings: Record<ToolName, Array<Types.IToolBinding>> = {
Pan: [{ mouseButton: Enums.MouseBindings.Primary }],
Zoom: [{ mouseButton: Enums.MouseBindings.Wheel }],
};
@Bill_Wallace: Not right now, but we would love a PR that incorporates this
@Andy_McGunagle: Gotcha, thanks!