File tree Expand file tree Collapse file tree
app/src/main/java/com/therealbluepandabear/pixapencil/activities/canvas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.therealbluepandabear.pixapencil.activities.canvas
33import android.annotation.SuppressLint
44import android.content.SharedPreferences
55import android.graphics.Matrix
6- import android.graphics.Rect
76import android.graphics.drawable.Drawable
87import android.net.Uri
98import android.os.Bundle
@@ -118,13 +117,13 @@ class CanvasActivity :
118117 */
119118
120119 private fun transformToChild (parent : View , child : View , event : MotionEvent ) {
121- val offsetX = parent.scrollX - child.left;
122- val offsetY = parent.scrollY - child.top;
123- event.offsetLocation(offsetX.toFloat(), offsetY.toFloat());
120+ val offsetX = parent.scrollX - child.left
121+ val offsetY = parent.scrollY - child.top
122+ event.offsetLocation(offsetX.toFloat(), offsetY.toFloat())
124123 if (! child.matrix.isIdentity) {
125124 val inverse = Matrix ()
126125 child.matrix.invert(inverse)
127- event.transform(inverse);
126+ event.transform(inverse)
128127 }
129128 }
130129
You can’t perform that action at this time.
0 commit comments