Skip to content
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

Open
shishima123 opened this issue Sep 19, 2024 · 3 comments
Open

Bug panning and pinch in mobile #1734

shishima123 opened this issue Sep 19, 2024 · 3 comments
Labels

Comments

@shishima123
Copy link

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, with pinchZoomY, 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:

  • Android 14
  • Browser: chrome, edge
Screenrecorder-2024-09-19-16-17-36-657.mp4
@shishima123 shishima123 changed the title Bug paning and pinch in mobile Bug panning and pinch in mobile Sep 19, 2024
@martynasma
Copy link
Collaborator

@shishima123
Copy link
Author

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
  })
)

@martynasma
Copy link
Collaborator

Thanks.

We'll need to investigate this. Will get back to you when we have something.

@github-actions github-actions bot added the stale label Oct 24, 2024
Repository owner deleted a comment from github-actions bot Oct 28, 2024
@martynasma martynasma removed the stale label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants