Can CC have a concept of WebInputEvent::FrameScale |
|||
Issue descriptionWhen CC tries to compute a white-listed touch action in InputHandlerProxy::HitTestTouchEvent, it uses touch_event.touches[i].PositionInWidget(). This coordinate has no transform considered. Instead it should use touch_event.TouchPointInRootFrame. However, that function requires frame_scale_ which seems to be set purely from Blink side. Is there a way to let CC know the frame_scale for a particular WebTouchEvent?
,
Nov 8 2017
,
Nov 8 2017
Actually, I looked a bit further, and it appears that LayerTreeImpl has a page_scale_factor_ that does match the frame_scale_ from Blink. The problem is that when there is a page zoom, CC won't know...
,
Nov 9 2017
Apologies, it looks like LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion does calculate things correctly, so this would be a won't fix. |
|||
►
Sign in to add a comment |
|||
Comment 1 by mustaq@chromium.org
, Nov 8 2017