vue-pinch-scroll-zoom
vue-pinch-scroll-zoom copied to clipboard
Set width and height other than px
First of all, great component!
I wondering if it is possible to use values for width and height, other than pixels. For example %, vh etc.
<PinchScrollZoom
ref="zoomer"
within
centred
key-actions
width="100%"
height="100vh"
:min-scale="0.5"
:max-scale="15"
@scaling="(e) => onEvent('scaling', e)"
@startDrag="(e) => onEvent('startDrag', e)"
@stopDrag="(e) => onEvent('stopDrag', e)"
@dragging="(e) => onEvent('dragging', e)"
>
<img src="..." />
</PinchScrollZoom>