Modifier + two finger scroll on touchbar seems broken

Describe the bug

Could you verify if there's a bug or is something wrong with my setup?

My actions (they were working just fine yesterday):
{
  "BTTTriggerType" : 644,
  "BTTTriggerTypeDescription" : "Two Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 32,
  "BTTPredefinedActionName" : "Keyboard Illumination Down",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "979072D5-D9F0-45A2-B418-F0128B9E11E4",
  "BTTEnabled" : 1,
  "BTTModifierMode" : 0,
  "BTTAlternateModifierKeys" : 0,
  "BTTRequiredModifierKeys" : 524288,
  "BTTOrder" : 26,
  "BTTDisplayOrder" : 0,
  "BTTMergeIntoTouchBarGroups" : 0
}
{
  "BTTTriggerType" : 645,
  "BTTTriggerTypeDescription" : "Two Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 31,
  "BTTPredefinedActionName" : "Keyboard Illumination Up",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "FCDEB718-EFCE-4FB3-8939-277BF6B9BA2C",
  "BTTEnabled" : 1,
  "BTTModifierMode" : 0,
  "BTTAlternateModifierKeys" : 0,
  "BTTRequiredModifierKeys" : 524288,
  "BTTOrder" : 25,
  "BTTDisplayOrder" : 0,
  "BTTMergeIntoTouchBarGroups" : 0
}
{
  "BTTTriggerType" : 644,
  "BTTTriggerTypeDescription" : "Two Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 29,
  "BTTPredefinedActionName" : "Brightness Down",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "8D5177D0-8FBF-4C85-BFD0-A9D183F57959",
  "BTTEnabled" : 1,
  "BTTModifierMode" : 0,
  "BTTAlternateModifierKeys" : 0,
  "BTTRequiredModifierKeys" : 1048576,
  "BTTOrder" : 23,
  "BTTDisplayOrder" : 0,
  "BTTMergeIntoTouchBarGroups" : 0,
  "BTTTriggerConfig" : {
    "BTTScriptType" : 0
  }
}
{
  "BTTTriggerType" : 647,
  "BTTTriggerTypeDescription" : "Three Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 28,
  "BTTPredefinedActionName" : "Brightness Up",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "402DC572-F62F-42A8-97C8-E09E03555E6B",
  "BTTEnabled" : 1,
  "BTTModifierMode" : 0,
  "BTTAlternateModifierKeys" : 0,
  "BTTOrder" : 22,
  "BTTDisplayOrder" : 0,
  "BTTMergeIntoTouchBarGroups" : 0,
  "BTTTriggerConfig" : {
    "BTTScriptType" : 0
  }
}

Mine stopped working after upgrading to 2.682. I think I was on 2.667 before updating.
I have 2 finger scroll set to a few things.

  1. No modifier - Volume
  2. Shift - Song Position
  3. Command - Screen Brightness
  4. Option - Microphone Volume

Now, scrolling left, regardless of modifier, only scrolls through the Song Position. While scrolling right, only decreases screen brightness.

I downgraded back to 2.667 and now it's working.

Hey,

this should be fixed in v2.683!

2 Likes

Works indeed, thanks!

Oh, just saw your post. How did you set up microphone volume? And what exactly is "song position" in your case? Sounds interesting!

Song Position scrolls through Spotify or iTunes track
on bttWidgetSliderMoved(percentageMoved)
if application "Spotify" is running then
tell application "Spotify"
set SongPos to player position -- of current track
set player position to (SongPos + percentageMoved * 100)
end tell
else if application "iTunes" is running then
tell application "iTunes"
set SongPos to player position -- of current track
set player position to (SongPos + percentageMoved * 100)
end tell
end if
end bttWidgetSliderMoved

Microphone level
on bttWidgetSliderMoved(percentageMoved)
set MicLevel to input volume of ( get volume settings )
set volume input volume (MicLevel + percentageMoved * 100)
end bttWidgetSliderMoved

1 Like

Thanks for sharing, it's awesome!

1 Like

This is broken again in 2.702

It works for me on 2.702 :thinking:

Odd. I upgraded and it stopped working. Downgraded and it worked again. Even tried it once more to be sure. As soon as I went back to 2.702, it stopped working. Are you on Mojave Public Beta 10.14.4?

No, I guess this might be an issue. I'm on 10.14.2 (18C54)

It also seems to work fine here, but I'm also not using the beta yet. (Will update in 1-2 weeks).

I wish I could downgrade to 10.14.3 again. I'm considering trying to backup everything I've changed since upgrading seperately, then using Time Machine to go back to it. Really annoying that Mail & Messages widgets don't work anymore.

So far I haven't had similar reports though. Maybe try to remove BTT from System Preferences => Security & Privacy => Privacy => Accessibility and add it again, this has helped previously.
Also make sure BTT has the permissions in System Preferences => Security & Privacy => Privacy => Automation

It's definitely not just BTT. Scripts don't work in Script Editor either. I even tried saving one as an application. Nothing that relies on menu bar items or dock elements or attributes works.

Ah ok, then it will hopefully be fixed with the next beta. I'll report it to Apple if it isn't fixed when I get to upgrade.

Ok. Just tried what you suggested anyway, but did it for everything. My computer froze as soon as I unselected Script Editor, so reset it (for about the 3rd time today), and now they all seem to be working again. I have no idea why, or what went wrong to begin with, but it works so Yay!

That whole permission stuff is still so broken even though Mojave has been released quite a while ago ;-(

1 Like

Woke up this morning to no gestures working, even though I hadn't updated. Tried updating, downgrading, permissions, reseting the computer. Then I tried making a new gesture. It worked, the old ones still didn't. Copy/Pasted & Deleted all the old ones, and now they all work. So I don't think it's the updated version if BTT, but don't know what caused it.