Add QS header margin to OHM touch adjustment

Test: manual and atest
Fixes: 238840692
Change-Id: I59c8905eabcca22e988caadf5f983ede74aac982
This commit is contained in:
Justin Weir
2022-12-14 15:03:03 -05:00
parent 04f120732a
commit c688cdba8e

View File

@@ -3707,7 +3707,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
* of DisplayArea into relative coordinates for all windows, we need to correct the
* QS Head bounds here.
*/
final int xOffset = Math.round(ev.getRawX() - ev.getX());
final int xOffset = Math.round(ev.getRawX() - ev.getX() + mQsHeader.getLeft());
final int yOffset = Math.round(ev.getRawY() - ev.getY());
mQsHeaderBound.offsetTo(xOffset, yOffset);
return mQsHeaderBound.contains((int) ev.getRawX(), (int) ev.getRawY());