-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug panning and pinch in mobile #1734
Labels
Comments
shishima123
changed the title
Bug paning and pinch in mobile
Bug panning and pinch in mobile
Sep 19, 2024
Have you tried disabling auto-zoom? https://www.amcharts.com/docs/v5/charts/xy-chart/axes/value-axis/#Dynamic_min_max |
yes, i tried my setting am5stock.StockPanel.new(root, {
wheelY: 'zoomXY',
panX: true,
panY: true,
wheelZoomPositionX: null,
wheelZoomPositionY: null,
pinchZoomX: true
// pinchZoomY: true
})
valueAxis = mainPanel.yAxes.push(
am5xy.ValueAxis.new(root, {
autoZoom: false,
renderer: am5xy.AxisRendererY.new(root, {
minorGridEnabled: false,
pan: 'zoom',
panSensitivity: 2
}),
tooltip: am5.Tooltip.new(root, {
autoTextColor: false
}),
numberFormat: '#,###',
paddingRight: 15,
maxPrecision: 0,
maxDeviation: 0
})
) |
Thanks. We'll need to investigate this. Will get back to you when we have something. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The panning feature has issues on mobile; it gets interrupted when I try to pan on both the x and y axes.
Additionally, when I set up the pinch feature with the
pinchZoomX
option, it works fine. However, withpinchZoomY
, every time you touch the screen with two fingers, it automatically zooms in. When you touch the screen with two fingers again, it returns to its original state.My device:
Screenrecorder-2024-09-19-16-17-36-657.mp4
The text was updated successfully, but these errors were encountered: