Horis 2 年之前
父節點
當前提交
c9ea5d2148
共有 1 個文件被更改,包括 1 次插入 和 3 次删除
  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)
         }
     }
 }