diff options
| author | bobzel <zzzman@gmail.com> | 2023-10-10 14:54:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 14:54:18 -0400 |
| commit | d929c0511cae863412a398f426d9e5b7ca64e6d9 (patch) | |
| tree | 7c077af3a03a17a8ffb0e9fbb45e7d71a8372cc5 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | c9d83841221620137e89920198ffaeab2677b439 (diff) | |
| parent | 5eca36aa3e775646d96671b922bf7205074ab135 (diff) | |
Merge pull request #282 from brown-dash/dataViz-scroll
Data viz scroll
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 676e96714..3a8e8f2ef 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1082,7 +1082,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection case freeformScrollMode.Pan: // if ctrl is selected then zoom if (!e.ctrlKey && this.props.isContentActive(true)) { - this.scrollPan({ deltaX: -e.deltaX, deltaY: e.shiftKey ? 0 : -Math.max(-1, Math.min(1, e.deltaY)) }); + this.scrollPan({ deltaX: -e.deltaX, deltaY: e.shiftKey ? 0 : -e.deltaY }); break; } default: |
