We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to make iframe draggable using default code from docs.
HTML
<div class="iframe-wrap draggable"> <iframe src="https://bbc.com" frameborder="0" ></iframe> </div>
JS
const position = {x: 0, y: 0}; interact('.draggable').draggable({ listeners: { move(event) { position.x += event.dx; position.y += event.dy; event.target.style.transform = `translate(${position.x}px, ${position.y}px)`; }, } });
CSS
.iframe-wrap { touch-action: none; user-select: none; width: 300px; height: 300px; overflow: hidden; position: fixed; z-index: 9; } .iframe-wrap iframe { pointer-events: none; height: 300px; }
It works perfect on Android devices. But on iOS dragging stops almost immediately.
The text was updated successfully, but these errors were encountered:
I'm planning on improving iframe support soon, but I can't give an estimated time, sorry.
If you don't need users to be able to click into the iframe, you can work around this by covering the iframe element with a transparent overlay.
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to make iframe draggable using default code from docs.
HTML
JS
CSS
It works perfect on Android devices.
But on iOS dragging stops almost immediately.
The text was updated successfully, but these errors were encountered: