Bug 133766

Summary: Implement swipeWithEvent for non-fluid swipes
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit2Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch andersca: review+

Tim Horton
Reported 2014-06-11 14:17:46 PDT
Attachments
patch (1.40 KB, patch)
2014-06-11 14:21 PDT, Tim Horton
andersca: review+
Tim Horton
Comment 1 2014-06-11 14:21:37 PDT
Anders Carlsson
Comment 2 2014-06-11 14:24:32 PDT
Comment on attachment 232904 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=232904&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:1188 > + if ([self shouldIgnoreMouseEvents]) > + return; > + > + if (!_data->_allowsBackForwardNavigationGestures) > + return; > + > + if ([event deltaX] > 0.0) > + _data->_page->goBack(); > + else if ([event deltaX] < 0.0) > + _data->_page->goForward(); Dot syntax. Should we call super if we can't swipe?
Tim Horton
Comment 3 2014-06-11 15:47:59 PDT
Note You need to log in before you can comment on or make changes to this bug.