Skip to content

Commit

Permalink
Merge integration refs/builds/qtci/dev/1617105725
Browse files Browse the repository at this point in the history
  • Loading branch information
Qt CI Bot committed Mar 30, 2021
2 parents 31c81e0 + 06b0b2b commit 5ce367a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/android/jar/src/org/qtproject/qt/android/QtSurface.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ public void surfaceDestroyed(SurfaceHolder holder)
@Override
public boolean onTouchEvent(MotionEvent event)
{
// QTBUG-65927
// Fix event positions depending on Surface position.
// In case when Surface is moved, we should also add this move to event position
event.setLocation(event.getX() + getX(), event.getY() + getY());

QtNative.sendTouchEvent(event, getId());
m_gestureDetector.onTouchEvent(event);
return true;
Expand Down

0 comments on commit 5ce367a

Please sign in to comment.