We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const zingPinch = new ZingTouch.Pinch({}); const zingExpand = new ZingTouch.Expand({}); zingTouchActiveRegion.bind(this.canvasElement, zingExpand, (e) => { // never fired! alert(JSON.stringify(e.detail)) }); zingTouchActiveRegion.bind(this.canvasElement, zingPinch, (e) => { // fires on pinch! });
Not sure why the Expand doesn't work but the Pinch works
But if I remove the pinch
zingTouchActiveRegion.bind(this.canvasElement, zingExpand, (e) => { alert(JSON.stringify(e.detail)) });
the event emitted is e.detail.distance instead of e.detail.expand as stated in the docs. https://zingchart.github.io/zingtouch/docs/#expand
e.detail.distance
e.detail.expand
The text was updated successfully, but these errors were encountered:
This is a bug. See issue #45. I fixed this in PR #48 by consolidating Pinch, Expand, and Distance.
Sorry, something went wrong.
Ah cool. thanks
No branches or pull requests
Not sure why the Expand doesn't work but the Pinch works
But if I remove the pinch
the event emitted is
e.detail.distance
instead ofe.detail.expand
as stated in the docs. https://zingchart.github.io/zingtouch/docs/#expandThe text was updated successfully, but these errors were encountered: