sketch icon indicating copy to clipboard operation
sketch copied to clipboard

SketchZoomImageView 在 Compose 中调用时出现滑动事件问题

Open HuanCheng65 opened this issue 1 year ago • 1 comments

在 Compose 界面中使用 AndroidView 调用 SketchZoomImageView,会导致 Pager 中滑动没有反应

HuanCheng65 avatar Sep 23 '22 03:09 HuanCheng65

这个操作我确实还没有试过,待我试试先

panpf avatar Sep 23 '22 06:09 panpf

这个问题暂时无法解决,貌似是 Compose 版 Pager的 bug 首先,SketchZoomImageView 正确调用了 requestDisallowInterceptTouchEvent 方法,AndroidView 也接收了 其次,SketchZoomImageView 也正确的实现了 canScrollHorizontally 和 canScrollVertically 方法 另外,我也拿 WebView 替代 SketchZoomImageView 试了一下,同样无法左右滑动切换 page

panpf avatar Oct 08 '22 08:10 panpf

image 目前只能先自己监听一下了,还是期待能有 Compose 原生的大图超采样支持

HuanCheng65 avatar Oct 24 '22 06:10 HuanCheng65

计划是要有的,等我学完 compose 自定义的

panpf avatar Oct 24 '22 06:10 panpf