Comments (5)
Thank you for your engagement!
I think an Enum would be more expressive and thus less confusing.
Since I use the GlideImage
-composable from the landscapist-lib as content for the Zoomable
, I have no opinion about EasyZoomableImage
.
from zoomables.
This would be handled by ZoomableState
. The current way to do this would be to initialize the State by calling
rememberZoomableState { zoomChange, offsetChange, rotationChange ->
scale *= zoomChange
offset += offsetChange
}
I think an overload of rememberTransformableState which takes three boolean Values to disable all three actions would be a good idea.
I might also implement a toggle for the EasyZoomableImage. Would you prefer different toggles for lockRotationZoomPan and general Rotation on/off or an Enum class with OFF
, ALWAYS
and LOCK_ROTATION_ON_ZOOM_PAN
from zoomables.
This should be possible in v1.1.0 by initializing the ZoomableState with
rememberZoomableState(rotationBehavior = ZoomableState.Rotation.DISABLED)
from zoomables.
Thank you for the speedy reaction, I will try it right now and give you feedback.
from zoomables.
It works great, thanks!
from zoomables.
Related Issues (9)
- [Zoomable] Double-Tap zoom point HOT 4
- [Zoomable] Add feature to disable swipeability in zoomed state HOT 14
- Not an issue, just appreciation HOT 3
- [Bug] Multi-touch zoom + drag to one finger drag sometimes does not work HOT 7
- [Feature request] Allow some additional configuration HOT 6
- Single touch pan does not trigger onTransformation HOT 4
- [Feature] Add Fling support HOT 1
- ZoomableImage intercepts clicks
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 zoomables.