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

Fixed zoom shortcut (scroll and zoom feature) - Zoom shortcut not working in 0.15.0 RC3 #8438

Closed
Jacalz opened this issue Apr 22, 2017 · 10 comments

Comments

@Jacalz
Copy link
Contributor

Jacalz commented Apr 22, 2017

Test plan

  1. Open any site
  2. Hold down ctrl and scroll at the same time
  3. Should zoom

  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    When pressing ctrl and scrolling with scroll wheel nothing happends 👎

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Windwos x64 Windows 10, I could not reproduce it on mac os

  • Brave Version (revision SHA):
    0.15.0 RC3

  • Steps to reproduce:

    1. Open any site
    2. Hold down ctrl and scroll at the same time
  • Actual result:
    Nothing happends

  • Expected result:
    Should zoom

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Yes

  • Is this an issue in the currently released version?
    Nope

  • Can this issue be consistently reproduced?
    Yes

@Jacalz Jacalz added this to the 0.15.0 milestone Apr 22, 2017
@jonathansampson
Copy link
Collaborator

jonathansampson commented Apr 23, 2017

Did just a bit of digging, and found that the mousewheel event isn't being fired on Frame instances when the Control Key is pressed. Handler bound here:

this.webview.addEventListener('mousewheel', this.onMouseWheel.bind(this))
.

Scrolling the wheel without the Control Key allows the event to be fired. As well, scrolling the wheel while holding the Alt Key also allows the even to be fired.

@bbondy
Copy link
Member

bbondy commented Apr 23, 2017

@Jacalz nice find!
I'm experiencing slightly different event firing @jonathansampson but thanks for the initial work in any case to find the spot in code. I think it's a muon problem and I think I either have a fix or am close, I just need a build on win to test it. Doing overnight. For e it always gets fired but ctrlKey is never set.

bbondy added a commit to brave/muon that referenced this issue Apr 23, 2017
@jonathansampson
Copy link
Collaborator

@bbondy Glad you were able to find the issue. This is what I was seeing in my cursory check:

ctrl-scrolling

bbondy added a commit to brave/muon that referenced this issue Apr 24, 2017
@bbondy
Copy link
Member

bbondy commented Apr 24, 2017

that's not the correct fix by the way, still working on a fix.

@bbondy
Copy link
Member

bbondy commented Apr 24, 2017

I get the same as you @jonathansampson on win10 but different on win7

@alexwykoff
Copy link
Contributor

Tried this with 0.15.0 RC4 (muon 2.58.5) and it wasn't working with a trackpad on my VM (win7 ia-32). I could scroll zoom my desktop icons though so it seemed as though the gesture was recognized.

@alexwykoff
Copy link
Contributor

@luixxiul @srirambv please grab this as soon as you can ^

@srirambv
Copy link
Collaborator

Still an issue on Win x64. Wheel up/down performs the scroll as expected but Ctrl+Wheel scroll doesn't zoom in/out. Reopening the issue as its not fixed on RC4 as well

@srirambv srirambv reopened this Apr 25, 2017
@bbondy
Copy link
Member

bbondy commented Apr 25, 2017

it needs new muon builds which aren't available yet. Next build will have it.

@bbondy bbondy closed this as completed Apr 25, 2017
@bbondy
Copy link
Member

bbondy commented Apr 25, 2017

will be fixed in 2.58.6 muon

@alexwykoff alexwykoff changed the title Zoom shortcut not working in 0.15.0 RC3 Fixed zoom shortcut (scroll and zoom feature) Apr 26, 2017
@luixxiul luixxiul changed the title Fixed zoom shortcut (scroll and zoom feature) Fixed zoom shortcut (scroll and zoom feature) - Zoom shortcut not working in 0.15.0 RC3 Apr 26, 2017
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

7 participants