Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Zoom happens by itself #1280

Closed
deitch opened this issue Apr 8, 2016 · 8 comments
Closed

Zoom happens by itself #1280

deitch opened this issue Apr 8, 2016 · 8 comments

Comments

@deitch
Copy link

deitch commented Apr 8, 2016

Using brave on Mac (10.11.4). It often will zoom in or out on a page without my intending. It mostly seems to happen when I do one of the following. Assume that the active tab is the first one.

  • Switch between tabs using ⌘-2 to the second tab and then ⌘-1 back to the first.
  • Switch between brave and another app using ⌘-tab

I cannot reproduce it reliably enough to know if it zooms out/in when I am leaving the tab (i.e. ⌘-2) or returning to the tab (i.e. ⌘-1), but then I have to use the menu to select View->ActualSize.

Similarly, I cannot reproduce it reliably enough to know if it zooms out/in when I am leaving the window (i.e. ⌘-tab away) or when I am returning to brave (i.e. ⌘-tab to brave).

Either way, when I return to the window/tab, the content is zoomed in or out. Most of the time it is zoom-in, but sometimes zoom out.

Is there a way I can turn on some form of debugging for it to tell me what commands it is receiving and when?

@bbondy
Copy link
Member

bbondy commented Apr 8, 2016

This is definitely a consequence of scrolling (or smooth scrolling slightly after you've stopped) and hitting Command. We may want to disable this or try to tweak it more. We use Command + scroll for zooming.

@bbondy
Copy link
Member

bbondy commented Apr 8, 2016

Maybe keep enabled if possible for mouse but not for trackpads.

@deitch
Copy link
Author

deitch commented Apr 8, 2016

Ah, that is interesting @bbondy. You are saying because it switches in using ⌘-tab or ⌘-1, and might have my fingers on the trackpad scrolling, if there is a tiny overlap of time, it might be scrolling in?

Is there a way to disable zoom-in/out using ⌘-scroll, or reduce sensitivity slightly?

@bbondy
Copy link
Member

bbondy commented Apr 8, 2016

yep that's right. I noticed that Chrome doesn't have this ability but firefox does. This might be why.
Ideally we'd just disable for trackpads and allow for mice scroll button turning I think.
I'd also accept a patch for a pref. Marking good-first-bug in case someone jumps in.

@deitch
Copy link
Author

deitch commented Apr 8, 2016

Or make it an option, or with a timeout. I like the timeout idea: no ⌘-scroll to zoom for 1-2 seconds after window gains focus.

I'd be happy to try a PR, cannot recall last time I did any Cocoa programming, but whatever. Send me a pointer to a starting point in the source to jumpstart me?

@bbondy bbondy added this to the 0.9.2 milestone Apr 9, 2016
@bbondy
Copy link
Member

bbondy commented Apr 20, 2016

We changed the scroll zoom shortcut to control so this shouldn't happen anymore on OS X.

@bbondy bbondy closed this as completed Apr 20, 2016
@bbondy
Copy link
Member

bbondy commented Apr 20, 2016

As of 0.9.2 (next release coming ~tomorrow)

@bbondy bbondy removed this from the 0.9.3dev milestone Apr 20, 2016
@deitch
Copy link
Author

deitch commented Apr 21, 2016

Thanks @bbondy . I would have been happy to do a PR with a pointer in the right direction, but you beat me to it!

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

No branches or pull requests

2 participants