mirror of
https://github.com/VisActor/VTable
synced 2024-11-21 17:40:10 +00:00
Merge pull request #2779 from VisActor/2764-bug-legend-scrolling-conflicts-with-table
Some checks are pending
Unit test CI / build (18.x) (push) Waiting to run
Some checks are pending
Unit test CI / build (18.x) (push) Waiting to run
2764 bug legend scrolling conflicts with table
This commit is contained in:
commit
32d75c26f4
@ -0,0 +1,11 @@
|
||||
{
|
||||
"changes": [
|
||||
{
|
||||
"comment": "fix: legend problems #2764 #2755\n\n",
|
||||
"type": "none",
|
||||
"packageName": "@visactor/vtable"
|
||||
}
|
||||
],
|
||||
"packageName": "@visactor/vtable",
|
||||
"email": "892739385@qq.com"
|
||||
}
|
@ -63,8 +63,8 @@ export class DiscreteTableLegend {
|
||||
}
|
||||
|
||||
this.legendComponent.setAttributes({
|
||||
width: this.table.tableNoFrameWidth,
|
||||
height: this.table.tableNoFrameHeight
|
||||
maxWidth: this.table.tableNoFrameWidth,
|
||||
maxHeight: this.table.tableNoFrameHeight
|
||||
});
|
||||
|
||||
this.adjustTableSize(this.legendComponent.attribute);
|
||||
|
@ -1049,9 +1049,12 @@ export function bindTableGroupListener(eventManager: EventManager) {
|
||||
table.scenegraph.updateNextFrame();
|
||||
});
|
||||
table.scenegraph.stage.addEventListener('wheel', (e: FederatedWheelEvent) => {
|
||||
table.editorManager?.completeEdit();
|
||||
if (table.eventManager._enableTableScroll) {
|
||||
handleWhell(e, stateManager);
|
||||
const tableGroup: any = e.path.find(node => (node as any).role === 'table');
|
||||
if (tableGroup) {
|
||||
table.editorManager?.completeEdit();
|
||||
if (table.eventManager._enableTableScroll) {
|
||||
handleWhell(e, stateManager);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user