|
|
Chromium Code Reviews
DescriptionSend the WebMouseWheelEvents unconverted if Shift is down.
WebMouseWheelEvents were converted based on Shift getting set. This should
not happen. Instead swap the X&Y before we goto generate the scroll
gesture.
BUG=646109
Committed: https://crrev.com/d5d0c8bf89ad9b6a03122b6620bdbbdcd406bb79
Cr-Commit-Position: refs/heads/master@{#419966}
Patch Set 1 #Patch Set 2 : Fix test #
Total comments: 4
Patch Set 3 : Fix nit #Patch Set 4 : Add comemnt #
Messages
Total messages: 25 (16 generated)
The CQ bit was checked by dtapuska@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by dtapuska@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
Description was changed from ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 ========== to ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 ==========
dtapuska@chromium.org changed reviewers: + mustaq@chromium.org
https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... content/browser/renderer_host/input/mouse_wheel_event_queue.cc:103: // Swap X&Y if Shift is down. Nit: "X & Y" https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... content/browser/renderer_host/input/mouse_wheel_event_queue.cc:106: event_sent_for_gesture_ack_->event.deltaX == 0) { I don't quite see the role of deltaX == 0 here. Could you please explain? Why is not deltaY considered?
https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... content/browser/renderer_host/input/mouse_wheel_event_queue.cc:103: // Swap X&Y if Shift is down. On 2016/09/20 18:01:00, mustaq wrote: > Nit: "X & Y" Done. https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... content/browser/renderer_host/input/mouse_wheel_event_queue.cc:106: event_sent_for_gesture_ack_->event.deltaX == 0) { On 2016/09/20 18:01:00, mustaq wrote: > I don't quite see the role of deltaX == 0 here. Could you please explain? Why is > not deltaY considered? Shift only modifies vertical movement provided there is no horizontal movement. You can use a touchpad and move in both directions it won't swap. Or if you move solely in a horizontal fashion it won't either.
On 2016/09/20 18:12:51, dtapuska wrote: > https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... > File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): > > https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... > content/browser/renderer_host/input/mouse_wheel_event_queue.cc:103: // Swap X&Y > if Shift is down. > On 2016/09/20 18:01:00, mustaq wrote: > > Nit: "X & Y" > > Done. > > https://codereview.chromium.org/2359463002/diff/20001/content/browser/rendere... > content/browser/renderer_host/input/mouse_wheel_event_queue.cc:106: > event_sent_for_gesture_ack_->event.deltaX == 0) { > On 2016/09/20 18:01:00, mustaq wrote: > > I don't quite see the role of deltaX == 0 here. Could you please explain? Why > is > > not deltaY considered? > > Shift only modifies vertical movement provided there is no horizontal movement. > You can use a touchpad and move in both directions it won't swap. Or if you move > solely in a horizontal fashion it won't either. Please add a comment in the code about it. LGTM otherwise. Thanks.
The CQ bit was checked by dtapuska@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mustaq@chromium.org Link to the patchset: https://codereview.chromium.org/2359463002/#ps60001 (title: "Add comemnt")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by dtapuska@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 ========== to ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 ========== to ========== Send the WebMouseWheelEvents unconverted if Shift is down. WebMouseWheelEvents were converted based on Shift getting set. This should not happen. Instead swap the X&Y before we goto generate the scroll gesture. BUG=646109 Committed: https://crrev.com/d5d0c8bf89ad9b6a03122b6620bdbbdcd406bb79 Cr-Commit-Position: refs/heads/master@{#419966} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/d5d0c8bf89ad9b6a03122b6620bdbbdcd406bb79 Cr-Commit-Position: refs/heads/master@{#419966} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
