Skip to content

Releases: saket/telephoto

0.11.2

28 Apr 06:51
Compare
Choose a tag to compare

Bug fixes

  • #84: Fixed an issue causing placeholders to sometimes take up the full screen (by @rharter)
  • #37: Prevent a crash in ZoomableAsyncImage() after the app's disk cache is cleared
  • #83: Correctly display single-frame GIFs

New changes

  • Increase memory cache hit rate with Coil by using Precision.INEXACT

0.10.0

14 Apr 19:24
Compare
Choose a tag to compare

Bug fixes

  • #70, #72: Correctly update ZoomableState when Modifier.zoomable() is reused
  • #71: Make sure velocity tracker tracks the same pointer
  • #81: Read maximum fling velocity from composition locals

Dependency updates

  • Compose compiler: 1.5.11
  • Compose UI: 1.6.4
  • Compose multiplatform: 1.6.4

0.9.0

25 Mar 22:58
Compare
Choose a tag to compare

Bug fixes

  • #70, #72: Zoomable modifier loses state after ZoomableState gets disposed and recreated

Dependency updates

  • Compose compiler: 1.5.10
  • Compose UI: 1.6.3
  • Compose multiplatform: 1.6.1

0.8.0

18 Feb 06:13
Compare
Choose a tag to compare

Breaking changes

  • Reordered SubSamplingImage()'s parameters to move Modifier below all required parameters.

New changes

  • Update Compose UI to 1.6.1 and Compose Multiplatform to 1.6.0-rc02
  • Introduced ZoomableState#transformedContentBounds for observing transformed content bounds. This can be used for drawing decorations around the content or performing hit tests.
  • Placeholder images now respond to click listeners. Additionally, they will swallow all other zoom gestures instead of ignoring them.
  • #3: Read color space of bitmaps from Coil and Glide.

Bug fixes

  • #60, #65: Improved detection of pinch-to-zoom gestures.
  • #8: Composables with Modifier.zoomable() are now drawn on the first frame. This fixes their broken layout preview.
  • #58: Fixed a resource leak when an image's EXIF metadata is read.
  • ZoomableState#resetZoom() now calculates the content's position on the same UI frame.
  • Images no longer flicker on start when they can't zoom-in any further.

0.7.1

18 Nov 07:14
Compare
Choose a tag to compare
  • Migrated all usages of Modifier.composed() to the new Modifier.Node architecture. This should help with performance, especially if your app uses multiple zoomable content on the same screen.
  • #54: ZoomableContentTransformation now includes additional information about the content's scale: ScaleMetadata,

Breaking changes

  • Reduced the public API surface by replacing all data classes with plain classes. These classes still implement equals and hashCode (thanks to poko), but they no longer offer any componentN() or copy() functions.

Bug fixes

  • #53: Prevent crashes when Compose UI reports the velocity of a gesture to be infinite.
  • #41: Fixed a crash where touch events received after the UI was restored would cause a division by zero error if the layout wasn't measured yet.

0.6.2

23 Sep 19:17
Compare
Choose a tag to compare

#49: Fix a crash when image size is smaller than half of canvas in width

0.6.1

21 Sep 03:51
Compare
Choose a tag to compare
  • #39: Significant improvement in performance for large images by,
    • Throttling decoding of tiles when image is animating its pan or zoom.
    • Reducing parallel decoding of tiles, especially for large images.
  • #43: Improved detection of double taps.
  • When zooming in a tiled image, prioritize loading of the tile under the finger(s).
  • Hide placeholder after state restoration if the image was previously zoomed in.

Bug fixes

  • #44: Fix positioning of images in RTL mode.
  • #41: Quick zooming images by a large distance in a single frame occasionally cause a division by zero error.
  • Updated Compose to 1.5.0.

0.5.0

02 Aug 14:54
Compare
Choose a tag to compare

Bug fixes

  • #33: Image can't be panned in reverse after it has reached its edge.
  • #36: Crash when refreshContentTransformation() is called.

0.4.0

05 Jun 05:37
Compare
Choose a tag to compare
  • #17 Port Modifier.zoomable() to Compose Multiplatform by @DSteve595
  • #16 Lower min SDK version to API 23 (Android 6.0 Marshmallow)
  • #27 Support loading of file URIs without file:/// scheme through Coil

Bug fixes

  • #20 Fix Image becoming unclickable after using double tap zoom by @K1rakishou
  • #25 Prevent leaking of Coil's cache entries

0.3.0

16 May 05:06
Compare
Choose a tag to compare

Fixed a bug that broke compatibility with nested scrolling.