diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-08-12 12:24:51 -0400 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-08-12 12:24:51 -0400 |
| commit | 73ac98d53b80230bb085d71b61254f6c24a3e397 (patch) | |
| tree | 43b13e482c29ce6a3db1108aca056581495303d7 /src/client/views/Main.tsx | |
| parent | b8ab5a823ae22b021c09dfd713b77211a51b3eae (diff) | |
| parent | 3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff) | |
merged
Diffstat (limited to 'src/client/views/Main.tsx')
| -rw-r--r-- | src/client/views/Main.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index 1cf13aa74..0e687737d 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -39,5 +39,10 @@ let swapDocs = async () => { (await Cast(CurrentUserUtils.UserDocument.sidebar, Doc))!.chromeStatus = "disabled"; CurrentUserUtils.UserDocument.chromeStatus = "disabled"; await swapDocs(); + document.getElementById('root')!.addEventListener('wheel', event => { + if (event.ctrlKey) { + event.preventDefault(); + } + }, true); ReactDOM.render(<MainView />, document.getElementById('root')); })();
\ No newline at end of file |
