Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #145 from sbusch/zoomkey
Browse files Browse the repository at this point in the history
Allow `shiftKey` for `zoomKey` option
  • Loading branch information
yotamberk authored Mar 30, 2019
2 parents bf1baed + ea4539e commit 830e848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/src/OptionsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class OptionsPage extends React.Component {
<td>Boolean</td>
<td>false</td>
<td>This option allows you to scroll horizontally to move backwards and forwards in the time range.
Only applicable when option <code>{`zoomCtrl`}</code> is defined or <code>{`zoomable`}</code> is <code>{`false`}</code>.
Only applicable when option <code>{`zoomKey`}</code> is defined or <code>{`zoomable`}</code> is <code>{`false`}</code>.
</td>
</tr>

Expand Down Expand Up @@ -810,7 +810,7 @@ class OptionsPage extends React.Component {
<tr parent="tooltip">
<td className="indent">tooltip.delay</td>
<td>Number</td>
<td><code>{`'500'`}</code></td>
<td><code>{`500`}</code></td>
<td>
Set a value (in ms) that the tooltip is delayed before showing.
</td>
Expand Down Expand Up @@ -882,7 +882,7 @@ class OptionsPage extends React.Component {
<td>String</td>
<td><code>{`''`}</code></td>
<td>Specifies whether the Timeline is only zoomed when an additional key is down.
Available values are '' (does not apply), 'altKey', 'ctrlKey', or 'metaKey'.
Available values are '' (does not apply), 'altKey', 'ctrlKey', 'shiftKey' or 'metaKey'.
Only applicable when option <code>{`moveable`}</code> is set <code>{`true`}</code>.
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions lib/timeline/optionsTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ let allOptions = {
width: {string, number},
preferZoom: { 'boolean': bool},
zoomable: { 'boolean': bool},
zoomKey: {string: ['ctrlKey', 'altKey', 'metaKey', '']},
zoomKey: {string: ['ctrlKey', 'altKey', 'shiftKey', 'metaKey', '']},
zoomFriction: {number},
zoomMax: {number},
zoomMin: {number},
Expand Down Expand Up @@ -284,7 +284,7 @@ let configureOptions = {
type: ['box', 'point', 'range', 'background'],
width: '100%',
zoomable: true,
zoomKey: ['ctrlKey', 'altKey', 'metaKey', ''],
zoomKey: ['ctrlKey', 'altKey', 'shiftKey', 'metaKey', ''],
zoomMax: [315360000000000, 10, 315360000000000, 1],
zoomMin: [10, 10, 315360000000000, 1]
}
Expand Down

0 comments on commit 830e848

Please sign in to comment.