Skip to content

Commit

Permalink
fix: remove resetting mouse pointer position after device rotating
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Dec 30, 2024
1 parent ceec611 commit 89c1fe4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/src/main/java/com/termux/x11/input/TouchInputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,12 @@ public void handleClientSizeChanged(int w, int h) {
if (mTouchpadHandler != null)
mTouchpadHandler.handleClientSizeChanged(w, h);

moveCursorToScreenPoint((float) w / 2, (float) h / 2);

resetTransformation();
}

public void handleHostSizeChanged(int w, int h) {
mRenderData.imageWidth = w;
mRenderData.imageHeight = h;
moveCursorToScreenPoint((float) w/2, (float) h/2);

if (mTouchpadHandler != null)
mTouchpadHandler.handleHostSizeChanged(w, h);
Expand Down

0 comments on commit 89c1fe4

Please sign in to comment.