aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-03-23 00:28:53 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-03-23 00:28:53 -0400
commitaec363d4b5fcb3df1a42796014c67dfc52149161 (patch)
tree82f0f898ec8cb5245ab42ccba1853a6872e732e3 /src/client/views/collections/CollectionSchemaView.tsx
parent356991c6100a44ef45b4574b43c815383d9be751 (diff)
parent1238c172a2ac9fb7dfdee2588f141f2ae0c22b8e (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.tsx6
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 }) =>