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

Right-button scrolling removing context menu on Linux KDE Chrome #36

Open
davidparsson opened this issue May 29, 2013 · 4 comments
Open

Comments

@davidparsson
Copy link
Owner

But weird issue under Linux KDE Chrome (or Chromium. Tried under both). If I enable Scrollbar Anywhere, my right-click menu doesn't come up on general pages, except on the clickable URLs. As soon as I disable it, everything works normally. Doesn't happen with Windows though. I'm guessing the right-click & drag interferes with the right-click in some common way?

@davidparsson
Copy link
Owner Author

Also reproducible on Mac when right clicking with touch pad

@tmelot2
Copy link

tmelot2 commented Aug 3, 2018

This is a problem for me on Chrome 67 (edit: and Chrome 68) on macOS High Sierra (10.13.4). To get the context menu I've got to hold Command. It's been an issue for a really long time but I never bothered to look into it.

Did a tiny bit of research: When I right click only, debug says 'blocking context menu'. When I hold Command, debug says 'wrong modkeys, ignoring'. So, something is setting ScrollbarAnywhere.blockContextMenu to true when it probably shouldn't be. Going to look into it further.

I haven't yet looked into how this works internally, but I'd expect that you could pop the context menu if it were determined you clicked and unclicked without a drag having taken place between them. Maybe this is how it works already.

@tmelot2
Copy link

tmelot2 commented Aug 3, 2018

This seems to be the line that's doing it. It seems like the problem might be that macOS wants to show the context menu on mouse down, not mouse up? If we could synthesize a 'show the context menu' event or whatever it could be used in ScrollbarAnywhere.onMouseUp() when we know that no dragging happened. I've never done any Chrome dev so I'm not familiar with what's possible and what's not.

@davidparsson
Copy link
Owner Author

Thanks for your efforts on finding the cause! If you're able to provide a pull request I'd be happy to review and merge it.

I became a father a little while back so the time I have to spend on this is very limited from now on.

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

No branches or pull requests

2 participants