Merge pull request #224 from LLK/revert-android-paint

Revert paint change for android
This commit is contained in:
chrisgarrity 2019-10-31 08:08:24 -04:00 committed by GitHub
commit 64c5575bda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1131,10 +1131,8 @@ export default class PaintAction {
pt2.x = pt.x;
pt2.y = pt.y;
var globalPoint = pt2.matrixTransform(Paint.root.getScreenCTM().inverse());
if (isiOS) {
globalPoint.x = globalPoint.x / Paint.currentZoom;
globalPoint.y = globalPoint.y / Paint.currentZoom;
}
globalPoint.x = globalPoint.x / Paint.currentZoom;
globalPoint.y = globalPoint.y / Paint.currentZoom;
return globalPoint;
}
}