thecodealer / vue-panzoom

Vue plugin to zoom/pan dom elements
MIT License
89 stars 20 forks source link

v1.1.6 does not work with vue 3.2.45 #44

Open roestigraben opened 1 year ago

roestigraben commented 1 year ago

I cannot get this install to work

Uncaught Error: Cannot create panzoom for the current type of dom element at Proxy.createPanZoom (vue-panzoom.js?v=59f1ef57:632:15) at Proxy.mounted (vue-panzoom.js?v=59f1ef57:1473:36) ....

I tried with older version, different error message at 1.1.3, 1.1.4,

Can anybody help

My final goal is to get it run on Nuxt 3.0, advice would be also welcome

antonbehaeghe commented 1 year ago

Any update? Dealing with the same issue.

Winston-Guess commented 11 months ago

I found the issue.

In script.js line 42: el = _wrapper.firstChild; needs to be el = _wrapper.firstElementChild;

ishaiavrahami commented 10 months ago

@Winston-Guess did you fix?