WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 81895
[Qt] Don't resume the suspended page if the user is continuously flicking.
https://bugs.webkit.org/show_bug.cgi?id=81895
Summary
[Qt] Don't resume the suspended page if the user is continuously flicking.
Jocelyn Turcotte
Reported
2012-03-22 05:21:53 PDT
[Qt] Don't resume the suspended page if the user is continuously flicking.
Attachments
Patch
(4.82 KB, patch)
2012-03-22 05:24 PDT
,
Jocelyn Turcotte
no flags
Details
Formatted Diff
Diff
Patch
(4.78 KB, patch)
2012-03-22 05:53 PDT
,
Jocelyn Turcotte
kenneth
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jocelyn Turcotte
Comment 1
2012-03-22 05:24:48 PDT
Created
attachment 133231
[details]
Patch
Kenneth Rohde Christiansen
Comment 2
2012-03-22 05:30:11 PDT
Comment on
attachment 133231
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133231&action=review
Seems like an ok idea, though it doesnt fit so well with the current code.
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:301 > +void QtViewportInteractionEngine::notifyTouchBegin()
I am not sure how well this naming with together with what we already have in the class
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:304 > + if (scrollAnimationActive())
This only works with the animation and not the "dragging"
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.h:153 > OwnPtr<ViewportUpdateDeferrer> m_scaleUpdateDeferrer; > OwnPtr<ViewportUpdateDeferrer> m_scrollUpdateDeferrer; > + OwnPtr<ViewportUpdateDeferrer> m_panUpdateDeferrer;
These are not actually per gesture recognizer, so scroll vs pan is confusing here.
Jocelyn Turcotte
Comment 3
2012-03-22 05:53:40 PDT
Created
attachment 133237
[details]
Patch
Jocelyn Turcotte
Comment 4
2012-03-22 05:55:28 PDT
(In reply to
comment #2
)
> > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:304 > > + if (scrollAnimationActive()) > > This only works with the animation and not the "dragging" >
m_scrollUpdateDeferrer handles the dragging, flickable tells us that it's dragging through movementStarted/Ended. Fixed the rest, tell me what you think about it.
Kenneth Rohde Christiansen
Comment 5
2012-03-22 05:57:54 PDT
Comment on
attachment 133237
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133237&action=review
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:304 > + if (scrollAnimationActive())
I still think this might need to check isMoving instead of isFlicking.
Kenneth Rohde Christiansen
Comment 6
2012-03-22 05:58:37 PDT
(In reply to
comment #4
)
> (In reply to
comment #2
) > > > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:304 > > > + if (scrollAnimationActive()) > > > > This only works with the animation and not the "dragging" > > > m_scrollUpdateDeferrer handles the dragging, flickable tells us that it's dragging through movementStarted/Ended. > > Fixed the rest, tell me what you think about it.
cant we merge them then?
Jocelyn Turcotte
Comment 7
2012-03-22 06:38:53 PDT
(In reply to
comment #6
)
> cant we merge them then?
I think it's pretty simple like this, the suspend count logic makes it all work. The other way would be to have some heavy boolean logic to decide when to clear the deferrer.
Jocelyn Turcotte
Comment 8
2012-03-22 08:24:53 PDT
Committed
r111705
: <
http://trac.webkit.org/changeset/111705
>
Stephen Chenney
Comment 9
2012-03-26 11:01:06 PDT
***
Bug 81691
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug