Enabling panning everywhere #513
Unanswered
FloErwerth
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @FloErwerth, thanks for the question. Right now, there isn't a way to configure it to be the entire canvas. We have it setup with the dimensions wrapping just the plotted area of the chart: <GestureHandlerRootView style={{ flex: 1, overflow: "hidden" }}>
{body}
<GestureHandler
gesture={composed}
transformState={transformState}
dimensions={{
x: Math.min(xScale.range()[0]!, 0),
y: Math.min(primaryYScale.range()[0]!, 0),
width: xScale.range()[1]! - Math.min(xScale.range()[0]!, 0),
height:
primaryYScale.range()[1]! - Math.min(primaryYScale.range()[0]!, 0),
}}
/>
</GestureHandlerRootView> If you want to create a feature request in the issue tab, we'll take a look and evaluate making the change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there :)
I have the problem, that the gestures are not enabled when touching outside of the canvas. I could confirm that by drawing a box with the size of the canvas and when trying to tap / pan / zoom outside of the canvas it does not work.
Is there a way to enable gestures everywhere in the graph?
Beta Was this translation helpful? Give feedback.
All reactions