Middle-Community icon indicating copy to clipboard operation
Middle-Community copied to clipboard

Middle Clicking stops working but continues to run

Open rxhanson opened this issue 2 years ago • 7 comments

This is not trivial to troubleshoot, since there's not really any simple way for me to reproduce it.

So, when this happens, I'll take as much information as I can get.

  1. What gestures (Magic Mouse & trackpad) are configured?
  2. Is there anything that might appear to trigger this happening?
  3. Are you running any other apps that listen to touch data?

If you experience this with the Magic Trackpad, you can switch the app to use Apple's private multitouch framework with this terminal command and an app restart:

defaults write com.knollsoft.Middle usePrivateFramework -bool true

rxhanson avatar Apr 25 '22 21:04 rxhanson

I usually only notice this after I wake up the laptop (close/open lid).

2017 MacBook Pro (Intel), macOS 12.2.1

  1. In what sense/where?
  2. I have not yet noticed any pattern except it's usually down after wake up, but will pay close attention now.
  3. Nope.

jpaulickcz avatar Apr 27 '22 08:04 jpaulickcz

@jpaulickcz, this likely means that you need a slightly longer delay for the app relaunching itself on wake.

In the About window, select Debug -> Delay Relaunch After Wake

(if it is already selected, deselect it and reselect it)

This will add a 5 second delay to the relaunch. If the app doesn't appear to be relaunching at all, then I'll need logs: ~/Library/Containers/com.knollsoft.MiddleLauncher/Data/Library/Application Support/Middle/middleHelper.log ~/Library/Application Support/Middle/middle.log

Edit: If the app is restarting itself, and still with the delay it's not working, then we might have to increase the delay even more, which can be done with a terminal command.

rxhanson avatar Apr 27 '22 17:04 rxhanson

Hi! I am experiencing an issue like this with middle. I am using mbp 2021, after awaking laptop middle starts (i see the icon working) but middleclick does not work. After enabling Viewer - it shows clicked 1 finger tap and has not response. clicking relaunch makes everything fine. Any ideas? here are the logs:

middleHelper


20:14:04.476 INFO AppDelegate.initializeLogging():39 - build 10
20:14:04.479 INFO AppDelegate.applicationDidFinishLaunching():46 - Pong sent
20:14:04.480 INFO AppDelegate.applicationDidFinishLaunching():52 - Subscribed to terminate notification
20:14:04.480 INFO AppDelegate.applicationDidFinishLaunching():55 - Middle helper initialized with args: ["/Applications/Middle.app/Contents/Library/LoginItems/MiddleLauncher.app/Contents/MacOS/MiddleLauncher"]
20:14:04.481 INFO AppDelegate.applicationDidFinishLaunching():89 - Middle already running, closing helper

middle:

20:14:04.348 INFO AppDelegate.initializeLogging():74 - build 82
20:14:04.378 INFO AppDelegate.killLauncher():260 - Sending terminate message to launcher

yehhor avatar Jun 17 '22 17:06 yehhor

@yehhor Did you try enabling the setting for "Delay relaunch after wake"?

In the About window, select Debug -> Delay Relaunch After Wake

For some users, if the app relaunches too soon then macOS does not properly send all the touch events to the app, and there is no way for the app to determine this.

rxhanson avatar Jun 18 '22 03:06 rxhanson

@yehhor Did you try enabling the setting for "Delay relaunch after wake"?

In the About window, select Debug -> Delay Relaunch After Wake

For some users, if the app relaunches too soon then macOS does not properly send all the touch events to the app, and there is no way for the app to determine this.

yes, this option is enabled. Also I deselected and selected it again as you mentioned before. I see that icon appears after ~5 secs after laptop awake.

yehhor avatar Jun 18 '22 07:06 yehhor

@yehhor thanks for the update.

Do you notice that the middle click is not registered in certain apps, or it's not registered anywhere at all until a restart?

As a sanity check, you can use this website to see if the middle click is registered there or not: https://unixpapa.com/js/testmouse.html

It sounds like touch events are being sent to the app (although there might be something wrong with the events that are being sent).

One more thing we can try up front is to increase that time period before the app will restart itself. For that, you'll need to execute a terminal command: defaults write com.knollsoft.Middle restartOnWakeDelay -float 10

I have heard of some users that needed > 5, but have not heard of anyone that needed > 10, so setting it to 10 should be a good start point.

rxhanson avatar Jun 18 '22 12:06 rxhanson

here is the log of testmouse app after used 3 fingers tap:

mousedown   which=1 button=0 buttons=1
mousedown   which=2 button=1 buttons=1
mouseup     which=2 button=1 buttons=1
mouseup     which=1 button=0 buttons=0

I've entered that command, and it worked fine, I'l update it if I have some issues.

yehhor avatar Jun 18 '22 12:06 yehhor