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

Fixed horizontal scrolling with two-finger gesture #7100

Closed
grantwinney opened this issue Feb 6, 2017 · 6 comments
Closed

Fixed horizontal scrolling with two-finger gesture #7100

grantwinney opened this issue Feb 6, 2017 · 6 comments

Comments

@grantwinney
Copy link

grantwinney commented Feb 6, 2017

Test plan

ecd391c


Issue:
When a particular webpage I'm using is wider than the screen and requires horizontal scrolling (such as a Trello "board"), Brave treats a two finger swipe as a horizontal scroll AND as a page navigation gesture.

Actual result:
When I two-finger swipe a wide page, it horizontally scrolls the page a bit, but then navigates back to the previous page.

Expected result:
I'd expect it to eat the page navigation feature unless I'm:

  • already scrolled to the left-most side of a wide page, then treat it as a page "back" navigation
  • already scrolled to the right-most side of a wide page, then treat it as a page "forward" navigation

Environment:
Mac OSX 10.11.6
Brave 0.13.1, SHA 9dd06f9

Any related issues:
None that I found, although someone commented similarly in another issue.

@cndouglas
Copy link

cndouglas commented Feb 6, 2017

+1 from me. Example: https://github.com/brave/browser-laptop/projects/1, scroll horizontally on the cards list.

This is a regression of #2548 (Horizontal scroll with two-finger conflicts with swipe back/forward).

@bgergen
Copy link

bgergen commented Feb 10, 2017

Glad to see this is a known issue. Makes it super frustrating to try to scroll horizontally to read code snippets or PRs on Github.

@cndouglas
Copy link

We've gotten a few +1's for this problem at #5907.

Can we set a milestone for this? I agree with the others that it's really annoying.

@bsclifton bsclifton added this to the 1.2.0 milestone Mar 10, 2017
@ttfkam
Copy link

ttfkam commented Mar 15, 2017

I would amend the behavior to disallow navigation altogether or at least only on clear gestures. When a page loads, it's not always clear that the page can scroll horizontally. Testing this only to navigate away from the page is non-optimal. In addition, it is common to try to scroll at least once after you've reached the beginning or ending of a view, especially on a large page. The intent is to reach the beginning or end, not leave the page.

Much better to switch this to a three-finger horizontal gesture, at least on Mac. The gesture is not already overloaded/not assigned to anything. It would make the navigation intent clear while leaving scrolling fully functional.

@cndouglas
Copy link

cndouglas commented Mar 15, 2017

@ttfkam Right now, the main problem with the swipe gesture (besides the horizontal scrolling mess) is that it does not respect the system preferences (issue #3299). Ultimately, I think that imitating Safari's behavior should solve most of the problems you described.

Edit: Fixed the issue number.

@cndouglas cndouglas modified the milestones: 0.14.1, 1.2.0 Mar 20, 2017
@cndouglas
Copy link

Tagging as a serious macOS usability issue. Please re-prioritize if needed.

@darkdh darkdh closed this as completed in ecd391c Mar 26, 2017
@darkdh darkdh modified the milestones: 0.14.0, 0.14.1 Mar 26, 2017
darkdh added a commit that referenced this issue Mar 26, 2017
Temporarily add system preference swipe setting back until we complete appState migration

fix #7100, #3299

Auditors: @bsclifton, @bbondy

Test Plan:
For swipe conflict
1. Navigate to some sites and make sure you have back/forward history
2. Open dev panel by shift + f8 to make webview smaller
3. Go to https://github.com/brave/browser-laptop/projects/1
4. Swipe left/back should not trigger navigation until reaching the edge

For swipe setting
1. Navigate to some sites and make sure you have back/forward history
2. Turn off "Swipe between edges" in system setting
3. There should be any navigations by edge swiping
4. Turn on "Swipe between edges" in systme setting
5. There will be navigation by edge swiping
@alexwykoff alexwykoff changed the title Horizontal scrolling with two-finger gesture is also treated as page navigation Fixed horizontal scrolling with two-finger gesture Mar 30, 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

8 participants