Skip to content

Commit

Permalink
Update scale.md
Browse files Browse the repository at this point in the history
  • Loading branch information
panpf authored Jan 2, 2025
1 parent 9178c02 commit edce97f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/wiki/scale.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,7 @@ Button(

### Rubber Band Scale

ZoomImage 会将缩放倍数限制在 `minScale``maxScale`之间,单指或双指缩放时如果超过了这个范围依然可以继续缩放,
但会有类似橡皮筋的阻尼效果,松手后会回弹到 `minScale``maxScale`
,此功能默认开启,你可通过 `rubberBandScale` 属性关闭它
ZoomImage will limit the zoom factor to between `minScale` and `maxScale`. If you zoom beyond this range with one or two fingers, you can still zoom, but there will be a damping effect similar to a rubber band, and it will rebound to `minScale` or `maxScale` after releasing the finger. This feature is enabled by default, and you can turn it off with the `rubberBandScale` property

example:

Expand Down Expand Up @@ -489,4 +487,4 @@ val zoomable: ZoomableEngine = sketchZoomImageView.zoomable

[Alignment]: https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment

[ScaleType]: https://developer.android.com/reference/android/widget/ImageView.ScaleType
[ScaleType]: https://developer.android.com/reference/android/widget/ImageView.ScaleType

0 comments on commit edce97f

Please sign in to comment.