fabricjs_viewport.js:131 Uncaught ReferenceError: _ is not defined
benjamij opened this issue · 2 comments
benjamij commented
When using fabricjs-viewport with touch events, I get the following error:
Uncaught ReferenceError: _ is not defined - fabricjs_viewport.js:131
The problem seems to be with ex[touchProp] = _.map(event[touchProp], (function(_this) in:
Viewport.prototype.transform.
wojtek-krysiak commented
_ is from uderscore: Try to include this in your project:
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
benjamij commented
Thanks! And thanks for this great library :)