[Webkit-unassigned] [Bug 96519] New: [TouchAdjustment] Simplify and improve hybrid distance function.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 12 08:05:16 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=96519
Summary: [TouchAdjustment] Simplify and improve hybrid distance
function.
Product: WebKit
Version: 420+
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: allan.jensen at nokia.com
The current distance function is a combination of two functions. One measuring the distance from the hot-spot in the touch-area to the centerline of the target, and one measuring how much of the target is covered.
The distance to the center-line was originally used instead of just the distance to the target, to make it easier to hit small targets near big targets. The very same feature is however also what measing how much of the target is covered is good at. Using the distance to center-line is therefore redundant now, and can be replaced with the simpler 'distance the hot-spot needs to be adjusted'.
Since 'distance the hot-spot needs to be adjusted' is also used later to choose between targets that have been fully covered, it could simply be added making the switch from one to the other in the hybrid distance function more gradual.
This greatly simplies a lot of code, and means several functions can be removed as dead code, and without any regressions in touchadjustment cases.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list