"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "db6c2c69c27f2c4fd1e2a1c6b0b1119b1e885f8a"
Fix translateToWindow to report proper values
The `translateToWindowX`and `translateToWindowY` will translate screen pointer to window coordinate, if a window has a global scale, it should multiply its `mInvGlobalScale` so we could get the proper values. For example: Global scale = 2.0f, inverse scale = 0.5f Then screen pointer is (1000, 1000) and the window frame is (0, 0). So after `translateToWindow`, it should return (500, 500) in window coordinate. Bug: b/246446831 Test: atest DragDropTest DragDropCompatTest Change-Id: If66875ebefb1ae15779603c193136cf6334517d3
Loading
Please register or sign in to comment