For some reason, when I click a button, be it in the customize buffer or hyperlinks in org documents, it sometimes works, and other times the whole buffer shifts to the left like a single pixel and it sets a mark (it says so in the minibuffer). The button is not clicked in those instances.
Has someone experienced something similar? Is there a way to improve this?
I don’t know, but it might help to check C-h l
to see which sequence of mouse events Emacs is reporting in each case.
I just tested, it reports that I’m dragging the mouse and setting a region, but it’s weird because if the issue is my clicking being sloppy, when it should happen in emacs with no config as well, and it doesn’t.
;; mouse-drag-region
;; mouse-set-region
This is when I click and the button doesn’t get pressed.
;; mouse-drag-region
;; Info-mouse-follow-nearest-node
And this is when it does register.
I can never reproduce the issue on emacs without config.
My guess is that the “drag” detection is a side-effect of this:
the whole buffer shifts to the left like a single pixel
as it’s conceivable that this means the positions of the click and release are “different” even if you didn’t actually move the mouse.
So that maybe explains the end result, but not the actual trigger.
I’m just speculating though.