Horis 2 anni fa
parent
commit
c9ea5d2148
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      app/src/main/java/io/legado/app/utils/ViewExtensions.kt

+ 1 - 3
app/src/main/java/io/legado/app/utils/ViewExtensions.kt

@@ -181,9 +181,7 @@ fun View.screenshot(picture: Picture) {
 fun View.screenshot(canvasRecorder: CanvasRecorder) {
     if (width > 0 && height > 0) {
         canvasRecorder.record(width, height) {
-            withTranslation(-scrollX.toFloat(), -scrollY.toFloat()) {
-                draw(this)
-            }
+            draw(this)
         }
     }
 }