-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Increase / Decrease Font Size with the Mouse Wheel #3250
Conversation
A few quick questions:
|
|
Just a clarification, the scroll position wasn't broken by the font size persistence changes. The positioning never worked correctly, I just preserved the existing behavior intending to fix it later. At any rate, glad it is being addressed. |
I agree with Peter that shift+wheel may not be worth the effort as it won't be discoverable at all. To add more complexity, in current trackpads cmd+wheel (two finger scroll) doesn't even work. This action is mapped to a pinch gesture instead. @TomMalbran Do you think we could split this into two separate pull requests? We could review those tests and fixes and deal with whatever we decide to do with the mousewheel later. |
@lkcampbell You are right that it never worked, and still doesn't work quite right because of issue #3115. But at least now it doesn't do a scroll after the document is loaded and the font didn't changed, and it should scroll better when the font is increased by more than 1. At least when #3115 is fixed. Maybe I could do a fix that works with out that fixed. @jblas I know that it is really not common, but since Ctrl was out, I wanted to give it a try anyway. I could move the tests and the scroll fixes to a new request and leave this one at is it until we decide if we want to use Shift, or until we find a way to use Ctrl or decide to do nothing and just close it. |
@TomMalbran I think we might as well close this since everything but the mousewheel is captured by #3300, and there's probably not much value in merging the mousewheel stuff given the discoverability issue. Is that ok? Btw -- were you ever able to find a CEF bug or anything for the Ctrl issue? |
@peterflynn Ok, I was waiting on what other had to say and if there was someone with more knowledge about CEF, if the event could be enabled. Unfortunately I haven't found anything in the CEF forums (maybe I need to look harder or start a post there?), but I know that this is a webkit bug. The browser captures the event but doesn't send it. Although there are other key combinations that can't be used inside the browser but work in CEF, so maybe this bug could be fixed in CEF? I'll close this if there is no way to fix it. |
Sorry. This needs to be Ctrl + Scroll (not Shift). Can we get to the bottom of why this isn't working w/ Ctrl? This does work in Chrome (browser), so maybe there is a CEF bug. |
It's ok, I would like it if it could work with Ctrl, but it doesn't. I made this jsfiddle: http://jsfiddle.net/7nqps/. If you scroll on the results section it will pop an alert with 2, if you press Ctrl, it should pop an alert with 1, but since Chrome catches the mouse wheel event event when Ctrl is pressed and doesn't let it get to the page, it does nothing. This is done so that Ctrl + Scroll zooms in Chrome, but since in CEF this isn't required, it would be nice if there is a way to make CEF push this event. |
@TomMalbran if you're interested in pursuing this more, you could search to see if there's an existing bug on CEF and file one if not. |
I haven't found bug yet, but I did found out that CEF has a zoom implementation, but I am not sure if this could be used to map it to solve this problem, since I don't know much about CEF, and the forums aren't helping much. |
Sounds like we should close this for now. The scrollwheel issue is captured on the Trello card, so we can pursue it in future when we have time to look at it. Thanks. |
This should complete the tasks in this Trello Card.
Unfortunately chrome doesn't trigger a mouse wheel event when control is pressed, so I had to use Shift + Mouse Wheel Scroll.
Updated: Since #3300 was merged, this request now only has the font size adjustments using the mouse wheel.