You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implement new options 'horizontalScrollKey' (#1670, #1323) and 'horizontalScrollInvert' (#1595) to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction.
Fix eslint errors
modified: docs/timeline/index.html | Add documentation for options 'horizontalScrollKey' and 'horizontalScrollInvert'.
modified: examples/timeline/other/horizontalScroll.html | Add new options 'horizontalScrollKey' and 'horizontalScrollInvert' to horizontal scroll example.
modified: lib/timeline/Core.js | Implement new options to allow for both vertical and horizontal scrolling & invert the horizontal scroll direction.
modified: lib/timeline/optionsTimeline.js | Add options 'horizontalScrollKey' and 'horizontalScrollInvert'.
modified: rollup.config.js | lint
modified: types/index.d.ts | Add type definitions for options 'horizontalScrollKey' and 'horizontalScrollInvert'.
<td>This option allows you to scroll horizontally to move backwards and forwards in the time range.
773
-
Only applicable when option <code>zoomKey</code> is defined or <code>zoomable</code> is <code>false</code>.
771
+
<td><code>false</code></td>
772
+
<td>
773
+
This option allows you to scroll horizontally to move backwards and forwards in the time range.<br/>
774
+
Only applicable when option <code>zoomKey</code> is defined or <code>zoomable</code> is <code>false</code>.
775
+
</td>
776
+
</tr>
777
+
778
+
<tr>
779
+
<td><code>horizontalScrollKey</code></td>
780
+
<td>String</td>
781
+
<td><code>''</code></td>
782
+
<td>
783
+
This option allows you to scroll horizontally while holding down a specific key.<br/>
784
+
Available values are <code>''</code> (does not apply), <code>'altKey'</code>, <code>'ctrlKey'</code>, <code>'shiftKey'</code> or <code>'metaKey'</code>.<br/>
785
+
Only applicable when option <code>horizontalScroll</code> is defined.
786
+
</td>
787
+
</tr>
788
+
789
+
<tr>
790
+
<td><code>horizontalScrollInvert</code></td>
791
+
<td>Boolean</td>
792
+
<td><code>false</code></td>
793
+
<td>
794
+
This option allows you to invert the horizontal scroll direction.<br/>
795
+
By default scroll-up will move the view to the right and scroll-down to the left.<br/>
796
+
Only applicable when option <code>horizontalScroll</code> is defined.
0 commit comments