OOPIF: Transform point of resent gesture event instead of applying offset.
When bubbling scroll events to ancestor views, we adjust the event's position by applying the parent's offset. This is incorrect if an OOPIF is subject to CSS scaling, since the point in the child is scaled. We now use a transformation function which accounts for scaling. We were also assuming that the event was being resent to the parent. This is true for GestureScrollBegin events, but for the remaining events in the sequence, we may bubble directly to an ancestor, so those events have the coordinates for the wrong view. We now defer the transformation of the coordinates to the target view's coordinate space to the RenderWidgetHostInputEventRouter which knows which view is the target. Bug: 626020, 817392 Change-Id: I86331f7bfc5fe7dd9e9032beb16ebb75b579f5b1 Reviewed-on: https://chromium-review.googlesource.com/978647Reviewed-by:Nasko Oskov <nasko@chromium.org> Reviewed-by:
Ken Buchanan <kenrb@chromium.org> Commit-Queue: Nasko Oskov <nasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#545890}
Showing
Please register or sign in to comment