diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-23 00:28:53 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-23 00:28:53 -0400 |
| commit | aec363d4b5fcb3df1a42796014c67dfc52149161 (patch) | |
| tree | 82f0f898ec8cb5245ab42ccba1853a6872e732e3 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | 356991c6100a44ef45b4574b43c815383d9be751 (diff) | |
| parent | 1238c172a2ac9fb7dfdee2588f141f2ae0c22b8e (diff) | |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into promises_and_user_document
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 7dd364449..0ff6c3b40 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -263,6 +263,10 @@ export class CollectionSchemaView extends CollectionViewBase { newKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => { this.newKeyName = e.currentTarget.value; } + onWheel = (e: React.WheelEvent): void => { + if (this.props.active()) + e.stopPropagation(); + } @observable _optionsActivated: number = 0; @action @@ -334,7 +338,7 @@ export class CollectionSchemaView extends CollectionViewBase { </Flyout>); return ( - <div className="collectionSchemaView-container" onPointerDown={this.onPointerDown} ref={this._mainCont} style={{ borderWidth: `${COLLECTION_BORDER_WIDTH}px` }} > + <div className="collectionSchemaView-container" onPointerDown={this.onPointerDown} onWheel={this.onWheel} ref={this._mainCont} style={{ borderWidth: `${COLLECTION_BORDER_WIDTH}px` }} > <div className="collectionSchemaView-dropTarget" onDrop={(e: React.DragEvent) => this.onDrop(e, {})} ref={this.createDropTarget}> <Measure onResize={this.setTableDimensions}> {({ measureRef }) => |
