jofftiquez / vue-croppie

Vue wrapper for croppie
https://jofftiquez.github.io/vue-croppie/
MIT License
260 stars 42 forks source link

Console error on using chrome #57

Closed koujiuji closed 5 years ago

koujiuji commented 5 years ago

Hi! I like your works:)

In using chrome browser, when start to crop and dragging image, following errros are outputed.

index.js:1088 Unable to preventDefault inside passive event listener invocation.
function mouseDown(ev)

index.js:1110 Unable to preventDefault inside passive event listener invocation.
function mouseMove(ev)

The cause is refer to this link, chrome ignore calling preventDefault. https://www.chromestatus.com/features/5093566007214080

So please add explicitly {passive: false} of options on next version.

ex) 
dist/index.js :727
window.addEventListener('mousemove', mouseMove, { passive: false });

Best Regards!

dobromir-hristov commented 5 years ago

This is connected to crippie it self. You are free to make a PR there.

koujiogawa commented 5 years ago

Thanks reply, I found work around for this issue, so please close this ticket. Best, Koji