WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
186320
attenuationFactor should be in range [0,1]
https://bugs.webkit.org/show_bug.cgi?id=186320
Summary
attenuationFactor should be in range [0,1]
Jeremy Jones
Reported
2018-06-05 13:40:03 PDT
attenuationFactor should be in range [0,1]
Attachments
Patch
(1.58 KB, patch)
2018-06-05 13:57 PDT
,
Jeremy Jones
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jeremy Jones
Comment 1
2018-06-05 13:40:48 PDT
rdar://problem/40821456
Jeremy Jones
Comment 2
2018-06-05 13:57:10 PDT
Created
attachment 341992
[details]
Patch
Jon Lee
Comment 3
2018-06-05 14:26:37 PDT
Comment on
attachment 341992
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=341992&action=review
> Source/WebKit/UIProcess/ios/fullscreen/FullscreenTouchSecheuristic.cpp:81 > + return std::max(std::min(normalizedTimeDelta * m_weight, 1.0), 0.0);
So the weight factor is incorrect when you pass some threshold, but with the clamping, how long must I wait in order for the old influence to be at 0, and basically we start from scratch? Before, the old influence would end up having a negative impact.
Jer Noble
Comment 4
2018-06-06 09:06:38 PDT
Comment on
attachment 341992
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=341992&action=review
>> Source/WebKit/UIProcess/ios/fullscreen/FullscreenTouchSecheuristic.cpp:81 >> + return std::max(std::min(normalizedTimeDelta * m_weight, 1.0), 0.0); > > So the weight factor is incorrect when you pass some threshold, but with the clamping, how long must I wait in order for the old influence to be at 0, and basically we start from scratch? Before, the old influence would end up having a negative impact.
We set the ramp down speed to 1_s and the weight to 0.1, so it would take 10 seconds until the old influence had negative impact under the old code.
WebKit Commit Bot
Comment 5
2018-06-06 09:36:18 PDT
Comment on
attachment 341992
[details]
Patch Clearing flags on attachment: 341992 Committed
r232545
: <
https://trac.webkit.org/changeset/232545
>
WebKit Commit Bot
Comment 6
2018-06-06 09:36:20 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.
Top of Page
Format For Printing
XML
Clone This Bug