Skip to content

Commit

Permalink
Version v5.1.3, Build 115130, Changelog update
Browse files Browse the repository at this point in the history
Fix for mouse pointer drift due to rounding errors
  • Loading branch information
iiordanov committed Aug 24, 2023
1 parent 50cbb13 commit d72f9ea
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 21 deletions.
4 changes: 2 additions & 2 deletions CustomVnc-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.CUSTOM_VNC_APP_PACKAGE_NAME"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
4 changes: 2 additions & 2 deletions Opaque-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.undatech.opaque"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-feature
android:name="android.hardware.usb.host"
Expand Down
4 changes: 2 additions & 2 deletions aRDP-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.aRDP"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
4 changes: 2 additions & 2 deletions aSPICE-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.aSPICE"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-feature
android:name="android.hardware.usb.host"
Expand Down
4 changes: 2 additions & 2 deletions bVNC-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.bVNC"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
2 changes: 2 additions & 0 deletions bVNC/CHANGELOG-Opaque
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v5.1.3
- Fix for mouse pointer drift due to rounding errors
v5.1.2
- New Software Keyboard Type Global Preference
- Completely dark background for better image on OLED screens
Expand Down
2 changes: 2 additions & 0 deletions bVNC/CHANGELOG-aRDP
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v5.1.3
- Fix for mouse pointer drift due to rounding errors
v5.1.2
- New Software Keyboard Type Global Preference
- Fix for Redirect SDcard on Android 11+
Expand Down
2 changes: 2 additions & 0 deletions bVNC/CHANGELOG-aSPICE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v5.1.3
- Fix for mouse pointer drift due to rounding errors
v5.1.2
- New Software Keyboard Type Global Preference
- Completely dark background for better image on OLED screens
Expand Down
2 changes: 2 additions & 0 deletions bVNC/CHANGELOG-bVNC
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v5.1.3
- Fix for mouse pointer drift due to rounding errors
v5.1.2
- New Software Keyboard Type Global Preference
- Completely dark background for better image on OLED screens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
if (inScaling) {
float scale = canvas.getZoomFactor();
activity.showToolbar();
canvas.relativePan((int)(distanceX*scale), (int)(distanceY*scale));
canvas.relativePan(Math.round(distanceX*scale), Math.round(distanceY*scale));
} else {
// TODO: This is a workaround for Android 4.2
boolean twoFingers = false;
Expand Down Expand Up @@ -118,8 +118,8 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
distanceY = sensitivity * distanceY / displayDensity;

// Compute the absolute new mouse position.
int newX = (int) (pointer.getX() + getDelta(-distanceX));
int newY = (int) (pointer.getY() + getDelta(-distanceY));
int newX = Math.round(pointer.getX() + getDelta(-distanceX));
int newY = Math.round(pointer.getY() + getDelta(-distanceY));

pointer.moveMouse(newX, newY, meta);
}
Expand Down Expand Up @@ -148,7 +148,7 @@ protected int getX (MotionEvent e) {
float distanceX = e.getX() - dragX;
dragX = e.getX();
// Compute the absolute new X coordinate.
return (int) (p.getX() + getDelta(distanceX));
return Math.round(p.getX() + getDelta(distanceX));
}
dragX = e.getX();
return p.getX();
Expand All @@ -164,7 +164,7 @@ protected int getY (MotionEvent e) {
float distanceY = e.getY() - dragY;
dragY = e.getY();
// Compute the absolute new Y coordinate.
return (int) (p.getY() + getDelta(distanceY));
return Math.round(p.getY() + getDelta(distanceY));
}
dragY = e.getY();
return p.getY();
Expand Down
4 changes: 2 additions & 2 deletions freeaRDP-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freeaRDP"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
4 changes: 2 additions & 2 deletions freeaSPICE-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freeaSPICE"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
4 changes: 2 additions & 2 deletions freebVNC-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freebVNC"
android:installLocation="auto"
android:versionCode="115129"
android:versionName="v5.1.2">
android:versionCode="115130"
android:versionName="v5.1.3">

<uses-permission tools:node="removeAll" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down

0 comments on commit d72f9ea

Please sign in to comment.