RESOLVED FIXED 195268
iOS: Using ⌥ to scroll horizontally is no different than arrow key
https://bugs.webkit.org/show_bug.cgi?id=195268
Summary iOS: Using ⌥ to scroll horizontally is no different than arrow key
Tim Horton
Reported 2019-03-04 00:30:33 PST
iOS: Using ⌥ to scroll horizontally is no different than arrow key
Attachments
Patch (9.25 KB, patch)
2019-03-04 00:30 PST, Tim Horton
no flags
Tim Horton
Comment 1 2019-03-04 00:30:44 PST
Tim Horton
Comment 2 2019-03-04 00:30:47 PST
Brent Fulgham
Comment 3 2019-03-05 09:43:59 PST
Comment on attachment 363496 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363496&action=review > Source/WebKit/ChangeLog:3 > + iOS: Using ⥠to scroll horizontally is no different than arrow key Should this comment be ASCII only? > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4428 > + return directionIsHorizontal ? documentSize.width : documentSize.height; We could have a helper function that converted ScrollingDirection + CGSize to the right output. Then it could be used in WKKeyboardScrollingAnimator.mm 'distanceForIncrement', too. But not today.
Darin Adler
Comment 4 2019-03-10 17:08:58 PDT
Comment on attachment 363496 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363496&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4435 > return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pixelsPerLineStep()) toView:_webView].height; Should this assert !horizontal?
Tim Horton
Comment 5 2019-03-10 19:28:40 PDT
Comment on attachment 363496 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363496&action=review >> Source/WebKit/ChangeLog:3 >> + iOS: Using ⥠to scroll horizontally is no different than arrow key > > Should this comment be ASCII only? No, the only thing that has a problem with this is the review tool. We have this problem a lot with smart quotes too :) >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4435 >> return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pixelsPerLineStep()) toView:_webView].height; > > Should this assert !horizontal? No, definitely not. The default left/right arrow key behavior is "by line" and uses the vertical line height.
WebKit Commit Bot
Comment 6 2019-03-10 19:55:00 PDT
Comment on attachment 363496 [details] Patch Clearing flags on attachment: 363496 Committed r242695: <https://trac.webkit.org/changeset/242695>
WebKit Commit Bot
Comment 7 2019-03-10 19:55:02 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.