Pinch gesture is modified to use product(dz) instead of sum(dz)
Sum(dz) is replaced with product of max of (dz, 1/dz). As a result,
the PinchValidator matches the actual pinch ratio. Moreover, it would
be easier to compare zoom-in and zoom-out gestures.
BUG=none
TEST=CL:340186
CQ-DEPEND=CL:340186
Change-Id: Idd53531fefcf6778af5ba70a39039e5f4b9e24e5
Reviewed-on: https://chromium-review.googlesource.com/340250
Commit-Ready: Amirhossein Simjour <asimjour@chromium.org>
Tested-by: Amirhossein Simjour <asimjour@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
1 file changed