Multi Touch Touchpad Gestures
This release implements a long awaited feature request, multi touch touchpad gestures #13. Invoke multi finger tap and swipe gestures on the touchpad by creating custom actions on up
, down
, left
, right
, and center
with action types multi_tap_action
, multi_hold_action
, and multi_double_tap_action
.
custom_actions:
up:
multi_tap_action:
action: key
key: VOLUME_UP
down:
multi_tap_action:
action: key
key: VOLUME_DOWN
left:
multi_tap_action:
action: key
key: MEDIA_REWIND
right:
multi_tap_action:
action: key
key: MEDIA_FAST_FORWARD
center:
double_tap_action:
action: key
key: BACK
multi_tap_action:
action: call-service
service: light.toggle
target:
entity_id: light.ceiling
multi_hold_action:
action: key
key: HOME
multi_double_tap_action:
action: key
key: MUTE
Repeat on Hold
Any button and touchpad tap actions can now be made repeatable by setting the hold_action
action
field to repeat
. By default the following default actions repeat when held, whether they are buttons or part of the touchpad:
up
down
left
right
volume_up
volume_down
delete
forward_delete
Similarly, the the above actions can be made not to repeat when held by setting their hold_action
to something else.
custom_actions:
channel_up:
hold_action:
action: repeat
channel_down:
hold_action:
action: repeat
volume_up:
# this remaps volume up hold to a different action instead of the default repeat
hold_action:
action: call-service
service: media_player.volume_set
data:
entity_id: media_player.google_tv
volume_level: 1
volume_down:
# this disables volume down from repeating when held
hold_action:
action: none
Other changes:
- Improved touchpad swipe direction detection and decreased sensitivity.
- Held swipe direction can now be changed mid swipe.
- Slider render fixes.
- Refactored how button and touchpad actions are called.
- Changed vibration levels to be
light
for all tap actions,medium
for all normal hold actions, andselection
(extra light) for repeated hold actions. - Fix button styles so there is not black/blue background when using them.
- Fix keyboard buttons behavior to not trigger regular button actions erroneously, to also have scroll blocking logic of regular buttons, and to also use the mouseup/touchend handlers instead of onClick
Full Changelog: 3.2.10...3.3.0-beta.009