File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres (more or less) to [Semantic Versioning](http://semver.o
7
7
8
8
## Unreleased
9
9
10
+ ## 0.26.7
11
+
12
+ * fix scrolling with trackpad @ilaiwi #679
13
+ * remove duplicate proptype validation in ` TimelineStateContext ` @xat
14
+
10
15
## 0.26.6
11
16
12
17
* fix ` visibleTimeStart ` , ` visibleTimeEnd ` and ` onTimeChange ` not working as expected in controlled mode @ilaiwi
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-calendar-timeline" ,
3
- "version" : " 0.26.6 " ,
3
+ "version" : " 0.26.7 " ,
4
4
"description" : " react calendar timeline" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -22,7 +22,13 @@ class ScrollElement extends Component {
22
22
}
23
23
}
24
24
25
-
25
+ /**
26
+ * needed to handle scrolling with trackpad
27
+ */
28
+ handleScroll = ( ) => {
29
+ const scrollX = this . scrollComponent . scrollLeft
30
+ this . props . onScroll ( scrollX )
31
+ }
26
32
27
33
refHandler = el => {
28
34
this . scrollComponent = el
@@ -192,6 +198,7 @@ class ScrollElement extends Component {
192
198
onTouchStart = { this . handleTouchStart }
193
199
onTouchMove = { this . handleTouchMove }
194
200
onTouchEnd = { this . handleTouchEnd }
201
+ onScroll = { this . handleScroll }
195
202
>
196
203
{ children }
197
204
</ div >
You can’t perform that action at this time.
0 commit comments