Сделать iframe перетаскиваемым?Jquery

Программирование на jquery
Гость
Сделать iframe перетаскиваемым?

Сообщение Гость »


I'm attempting to make a chat widget draggable, which I've successfully managed to do via

Код: Выделить всё

react-draggable
. However, this chat widget is also consumed by an iframe, which is entirely created via HTML. So I would need the iframe to also be draggable, but this package doesn't work with

Код: Выделить всё

react-draggable
. Are there any pure JS solutions to make this type behavior work?

The skeleton of my iframe example roughly looks like:

Код: Выделить всё

         #shadowRoot \\ all the react code      


Источник: https://stackoverflow.com/questions/781 ... -draggable

Вернуться в «Jquery»