docs: Add missing info regarding the drop position offset. (#11406)

* Add missing document regarding the drop position offset.

* Update webview.ts

---------

Co-authored-by: Fabian-Lars <github@fabianlars.de>
This commit is contained in:
Shi Yan 2024-12-02 13:40:56 -06:00 committed by GitHub
parent 983634a41f
commit 0e2f0b29cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -579,6 +579,9 @@ class Webview {
* unlisten();
* ```
*
* When the debugger panel is open, the drop position of this event may be inaccurate due to a known limitation.
* To retrieve the correct drop position, please detach the debugger.
*
* @returns A promise resolving to a function to unlisten to the event.
* Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.
*/