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
lastest
none
const spec = { type: 'bar', data: [ { id: 'barData', values: [ { year: '2000', sales: 22 }, { year: '2001', sales: 13 }, { year: '2002', sales: 25 }, { year: '2003', sales: 29 }, { year: '2004', sales: 38 }, { year: '2005', sales: 49 }, { year: '2006', sales: 58 }, { year: '2007', sales: 29 }, { year: '2008', sales: 78 }, { year: '2009', sales: 19 }, { year: '2010', sales: 23 }, { year: '2011', sales: 20 }, { year: '2012', sales: 98 }, { year: '2013', sales: 49 }, { year: '2014', sales: 28 } ] } ], direction: 'horizontal', yField: 'year', xField: 'sales', scrollBar: [ { orient: 'right', startValue: '2011', endValue: '2014', roam: true, } ] }; // 两次动画 // 滚动条不能再滚动条上拖拽 const vchart = new VChart(spec, { dom: CONTAINER_ID }); vchart.on('click', { nodeName: 'axis-label' }, e => { console.log('===click'); }); vchart.renderSync(); // Just for the convenience of console debugging, DO NOT COPY! window['vchart'] = vchart;
触发滚动条滚动后,在 vchart 上注册的 click 事件就不能触发了,调试下来发现是被 scrollbar 上的事件阻止冒泡了,需要排查下是否 _clickEnable 这个参数忘记在某个地方置为 true 了
_clickEnable
VChart/packages/vchart/src/interaction/zoom/zoomable.ts
Line 365 in 92b97ac
fix it
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
用户期望今天修复
Sorry, something went wrong.
skie1997
Successfully merging a pull request may close this issue.
Version
lastest
Link to Minimal Reproduction
none
Steps to Reproduce
Current Behavior
触发滚动条滚动后,在 vchart 上注册的 click 事件就不能触发了,调试下来发现是被 scrollbar 上的事件阻止冒泡了,需要排查下是否
_clickEnable
这个参数忘记在某个地方置为 true 了VChart/packages/vchart/src/interaction/zoom/zoomable.ts
Line 365 in 92b97ac
Expected Behavior
fix it
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: