Maciej Pyrc

Results 41 comments of Maciej Pyrc

Added KeepScale component 🚀

@Shebuka you can provide your own css transform callback so you can use translate, translate3d or matrix to figure out what works for you. https://github.com/prc5/react-zoom-pan-pinch/blob/0c311f18a3c7efbde7d20b02c3fbd33b91f8b951/src/models/context.model.ts#L68 Please leave the comment if...

1. https://github.com/prc5/react-zoom-pan-pinch/blob/0c311f18a3c7efbde7d20b02c3fbd33b91f8b951/src/utils/styles.utils.ts#L12 2. https://github.com/prc5/react-zoom-pan-pinch/blob/0c311f18a3c7efbde7d20b02c3fbd33b91f8b951/src/utils/styles.utils.ts#L3 3. The same as number 2 but just use translate3d

@Shebuka also number 2 is default one

Now it's even easier having hooks for interacting with context 👍

We can also disable animation which goes beyond wrapper - it's disablePadding prop.

Yes, we can do it via ref, where we can access current values for scale and position so you can add it via css with translate and scale properties. The...