修正单点触控缩放错误
This commit is contained in:
1 parent
37043c1284
commit
b1f772eb2f
7 files changed
+11
-5
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="10"
|
||||
android:versionName="0.4.0" >
|
||||
android:versionCode="11"
|
||||
android:versionName="0.4.1" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="10"
|
||||
android:versionName="0.4.0" >
|
||||
android:versionCode="11"
|
||||
android:versionName="0.4.1" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,7 @@
|
||||
Version 0.4.1 (2014-??-??)
|
||||
* 修正单点触控缩放错误
|
||||
|
||||
|
||||
Version 0.4.0 (2014-04-01)
|
||||
* 全新的阅读界面
|
||||
* 优化内存
|
||||
|
||||
@@ -594,6 +594,8 @@ public class GalleryView extends GLView {
|
||||
|
||||
rect.set(rect.left - xOffset, rect.top - yOffset, rect.right + xOffset, rect.bottom + yOffset);
|
||||
|
||||
adjustPosition(curShowItem);
|
||||
|
||||
invalidate();
|
||||
return true;
|
||||
}
|
||||
@@ -1007,7 +1009,7 @@ public class GalleryView extends GLView {
|
||||
*
|
||||
* @param showItem
|
||||
*/
|
||||
public void adjustPosition(ShowItem showItem) {
|
||||
private void adjustPosition(ShowItem showItem) {
|
||||
Rect rect = showItem.mRect;
|
||||
int showWidth = rect.width();
|
||||
int showHeight = rect.height();
|
||||
|
||||
Reference in new issue
Block a user