Comments (2)
Hi, @pkrystyniak-jt
Could you explain in a little more detail?
Is it not enough to observe ZoomState.scale?
from zoomable.
You're right, I missed the fact it's a mutable state. I might observe it by using snapshotFlow
. That should do, thanks for leading me to this solution.
LaunchedEffect(zoomState) {
snapshotFlow { zoomState.scale }.collect { scale ->
...
}
}
from zoomable.
Related Issues (20)
- State Restoration HOT 1
- make zoomable image like instagram posts HOT 5
- onTouchEvent is not broadcasted to the view when the view is zoomed HOT 2
- Support for KMP HOT 9
- Single Tap isn't strict HOT 3
- Support Swipe-to-Dismiss behavior HOT 1
- How ZoomState exposes offsetX, offsetY and scale so i can find what part of the image is being displayed. HOT 5
- Key param HOT 7
- Min/Max scale HOT 4
- Crash with large images HOT 7
- Zoom is spreading over other composables HOT 5
- Paparazzi screenshot test failing HOT 1
- How to zoom at the center of the image programmatically HOT 3
- detects wrong taps on zoomable LazyList when scrolling
- Individual Zoom for Canvas Rectangles using rememberZoomState. HOT 2
- [Bug] Crash when gesture fast HOT 2
- How to apply to entire Screen with multiple Text elements?
- Back gesture triggers onTap
- Image Enlargement Issue HOT 1
- onTap and onDoubleTap does not work if the parent composable is clickable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoomable.