Victory: VictoryChart inside scrollview blocks scroll gesture on Android

Created on 24 Oct 2017  路  6Comments  路  Source: FormidableLabs/victory

On iOS everything works fine. On Android the chart completely blocks the scrollview gesture. How can i fix this?

Most helpful comment

I would like to add a (in my opinion) more clean solution, as reported here.
Just for reference, the comment suggests to add pointerEvents="none" to the surrounding View.

All 6 comments

How can you fix it?

@danieldelouya , I'm also facing this issue. Please help

@danieldelouya do you have a workaround?

@liuruizhe728 @ShaikhKabeer
I found a workaround

<View> 
<VictoryPie />
{/* Andoid scroll fix */}
                  <View
                    style={{
                      zIndex: 9999,
                      position: "absolute",
                      width: "100%",
                      height: "100%"
                    }}
                  />
</View>

I would like to add a (in my opinion) more clean solution, as reported here.
Just for reference, the comment suggests to add pointerEvents="none" to the surrounding View.

just got bitten by this (both ios and android) @lorenzosfarra answer fixed it for me.
in my case i have a chart inside a react-scrollable-tab-view-tab
the behaviour is very inconsistent, some tabs with scrollview work (eg the scroll works after going to a new tab), some don't (eg scroll is blocked)
there's definitely an issue .

Was this page helpful?
0 / 5 - 0 ratings