vue-pinch-scroll-zoom icon indicating copy to clipboard operation
vue-pinch-scroll-zoom copied to clipboard

Set width and height other than px

Open jop-io opened this issue 11 months ago • 4 comments

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>

jop-io avatar Mar 08 '24 14:03 jop-io