Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Suggestion from https://codereview.qt-project.org/#/c/99800/:
Alexander Volkov Dec 25 4:53 PM
Patch Set 9:
What about https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSResponder_Class/#//apple_ref/occ/instm/NSResponder/wantsScrollEventsForSwipeTrackingOnAxis: ?
Shawn Rutledge Dec 29 7:45 AM
Patch Set 9:
Not sure I understand your point. A way to get the pan gesture working?
"The events are forwarded only on the following condition: the content to be scrolled is already at the edge of the scrolled direction when the scroll gesture begins. Otherwise, the view performs elastic scrolling."
Sounds like they mean if you are at the top of the view and you try to scroll up with the 2-finger flick, so that it's going to try to bounce back right away; or at the bottom and you try to scroll down. Or maybe I don't understand that either.
Alexander Volkov Dec 29 9:51 AM
Patch Set 9:
Well the documentation is rather messy. Maybe this will help: https://stackoverflow.com/questions/12748072/how-to-properly-use-swipewithevent-to-navigate-a-webview-obj-c
The idea is to return YES from wantsScrollEventsForSwipeTrackingOnAxis, call trackSwipeEventWithOptions in scrollWheel and to process swipe gestures in a handler.
Attachments
Issue Links
- relates to
-
QTBUG-81042 iPhone: create QSwipeGestures with 1 finger, not 3
-
- Reported
-
-
QTBUG-42707 QSwipeGesture & QPanGesture not being triggered in MacOSX using touchpad
-
- Reported
-