[pointerevents] even with pointer capture on full width/height element in iframe, dragging stops working outside of iframe (#493)

trusktr has just created a new issue for https://github.com/w3c/pointerevents:

== even with pointer capture on full width/height element in iframe, dragging stops working outside of iframe ==
I think that's a bug if a browser is doing that, right?

For example,

- I have an iframe, with a `<body>` that is full width and height of the window in the iframe.
- on pointerdown on the body in the iframe, I capture the pointer
- pointermove fires while I'm dragging inside the body
- as soon as I leave the iframe boundary while the pointer is captured, pointermove events stop firing
- if I let go (pointerup) outside of the iframe, pointerup does not fire, capture is not lost (I am observing a lostpointercapture event)
- as soon as I hover back inside the iframe, capture is lost

My pointerdown, pointermove, and pointerup handlers all have `event.preventDefault()` as their first line. Is this what is causing the issue, and is that what expected?

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/493 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 22 November 2023 09:08:53 UTC