react-xr icon indicating copy to clipboard operation
react-xr copied to clipboard

If click started on one element and finished on other it does not work (pointer-events)

Open Ledzz opened this issue 1 year ago • 4 comments

Please see the repro: https://codesandbox.io/p/sandbox/optimistic-buck-k6hfqz

If you click either blue or green square, the click work as intended. If during clicking you slide you pointer on the blue square for some pixels, it still works. But if you do pointerdown on blue, slide to green, and pointerup on green, click does not work. I think it should work cause we didn't left the blue square.

Ledzz avatar Nov 01 '24 14:11 Ledzz

Thanks for raising the issue. Can you show that your described behavior is what happens in html? Just a very simple code pen so I dont have to do it myself right now :)

bbohlender avatar Nov 01 '24 14:11 bbohlender

Yeah sure! Placed html variant near left top corner :)

Ledzz avatar Nov 01 '24 14:11 Ledzz

@Ledzz Thanks for providing the example My plan is to adress this, together with #369 tomorrow :)

bbohlender avatar Nov 03 '24 21:11 bbohlender

Hello! I see that you've merged that MR, but the bug still persists. I've updated codesandbox to latest versions of both libs.

Ledzz avatar Dec 13 '24 10:12 Ledzz