Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle Clicking stops working but continues to run #45

Open
rxhanson opened this issue Apr 25, 2022 · 7 comments
Open

Middle Clicking stops working but continues to run #45

rxhanson opened this issue Apr 25, 2022 · 7 comments

Comments

@rxhanson
Copy link
Owner

rxhanson commented Apr 25, 2022

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

@jpaulickcz
Copy link

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.

@rxhanson
Copy link
Owner Author

rxhanson commented Apr 27, 2022

@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.

@yehhor
Copy link

yehhor commented Jun 17, 2022

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

@rxhanson
Copy link
Owner Author

@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.

@yehhor
Copy link

yehhor commented Jun 18, 2022

@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.

@rxhanson
Copy link
Owner Author

rxhanson commented Jun 18, 2022

@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.

@yehhor
Copy link

yehhor commented Jun 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants