type: mouse_motion_to_scroll
Most manipulators have type basic
. Another manipulator type in Karabiner-Elements is
mouse_motion_to_scroll.
type MouseMotionToScrollManipulator = {
type: 'mouse_motion_to_scroll'
from?: { modifiers: FromModifiers }
conditions?: BasicManipulator['conditions']
options?: {
momentum_scroll_enabled?: boolean
speed_multiplier?: number
}
}
It can be created with mouseMotionToScroll()
.
mouseMotionToScroll()
.modifiers('⌘')
.condition(ifVar('test'))
.options({ speed_multiplier: 2 })
Generated JSON
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": { "mandatory": ["command"] }
},
"conditions": [
{"type": "variable_if", "name": "test", "value": 1}
],
"options": { "speed_multiplier": 2 }
}