antvis/G6

scroll-canvas中 direction: 'x' 不生效。 #5145

Nightsky-Dec posted onGitHub

问题描述

{ type: 'scroll-canvas', direction: 'x', }, direction为X方向时,滚动不起作用。 方向为Y时,滚动可以正常起作用。

重现链接

https://stackblitz.com/edit/react-t16utk?file=index.js

重现步骤

1.进入页面 2.在图中使用滚动轴,滚动无效

预期行为

滚动轴可使页面基于X轴滚动,或者有横向滚动条可使用。

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


hi @Nightsky-Dec, welcome!

posted by github-actions[bot] over 1 year ago

Hi @Nightsky-Dec, Please star this repo if you find it useful! Thanks :star:! 你好 @Nightsky-Dec。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

Kapture 2023-11-15 at 18 39 37 提供的 demo 中基于 x 轴滚动是生效的,再试下?

posted by yvonneyx over 1 year ago

你好。你说的demo是指我发的?还是官方demo(https://g6.antv.antgroup.com/examples/tree/compactBox/#basicCompactBox)? 我试的都不行,能不能把你这个能正常使用的代码发个链接看一下。

posted by Nightsky-Dec over 1 year ago

你好。你说的demo是指我发的?还是官方demo(https://g6.antv.antgroup.com/examples/tree/compactBox/#basicCompactBox)?%EF%BC%9F) 我试的都不行,能不能把你这个能正常使用的代码发个链接看一下。

你是windows设备,windows设备就是不能在x轴上左右滚动,这看起来是个bug。

posted by RealRio about 1 year ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 6 months ago

Fund this Issue

$0.00
Funded

Pull requests