rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.22k stars 263 forks source link

ui-gridtable 中的bug反馈 #471

Closed woshisheji closed 2 months ago

woshisheji commented 2 months ago

1.将 let aaa=this.rexUI.add.gridTable() 添加到官方默认容器中,它的遮罩似乎会无效 如图效果: bug1

正常效果: bug2

2.如果相机偏移坐标,相机视野坐标设定到10000,10000,(任意超出窗口坐标) 那么除了滚动有效,其他所有点击表项的事件均失效,尝试固定过里面内部对象,但似乎也无效。. aaa.setScrollFactor(0, 0);
又尝试 let tableBody = aaa.getElement('table') tableBody .setScrollFactor(0, 0);
依旧无效。

rexrainbow commented 2 months ago

Duplicated #363

woshisheji commented 2 months ago

我还以为3.8中已经修复了。。 有点小小的忧伤。

rexrainbow commented 2 months ago

That issue has been assigned as milestone of Phaser Beam see https://github.com/phaserjs/phaser/issues/6177 , the last line

woshisheji commented 2 months ago

不加入到容器,相机坐标偏移后,事件也会丢失无效。不知道这个问题是什么异常。就是我所说的第二个问题

rexrainbow commented 2 months ago

Test code, slider, scroller, clicking child all work.

Please provide a simplest runnable sample code for reproducing that case.

woshisheji commented 2 months ago

https://codepen.io/rexrainbow/pen/XyJbWX?editors=1010 在代码行 183行后面添加以下命令 gridTable.setScrollFactor(0); this.cameras.main.setScroll(20000, 0); 所有表格中的cell事件将会失去响应。可能是内部没有跟随。

rexrainbow commented 2 months ago

Bug fixed, see this test case. Camera scrolling is at line 186.

woshisheji commented 2 months ago

测试OK。

rexrainbow commented 2 months ago

Thank you for finding the bug