Skip to content
New issue

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

Konva Layer Freezing on iOS devices (iPad, iPhone, etc.) #1843

Closed
Knifin opened this issue Oct 21, 2024 · 0 comments
Closed

Konva Layer Freezing on iOS devices (iPad, iPhone, etc.) #1843

Knifin opened this issue Oct 21, 2024 · 0 comments

Comments

@Knifin
Copy link

Knifin commented Oct 21, 2024

Major issue across all iOS devices.

When dragging any Node (group, image, etc.) and the context is pulled away, the layer the node is on becomes completely unresponsive. Clicking, dragging, and/or any interactions do not work as shown here:

Steps to Reproduce

  1. Create any Node element that is draggable.
  2. Drag the element near one of the edges which will pull up the bottom menu or out of the app.
  3. The layer becomes frozen.

Alternative:

  1. Create any Node element that is draggable.
  2. While holding the element drag up with your other finger from the bottom.
  3. The layer becomes frozen.
<html>
    <head>
        <title>Debug</title>
        <meta name="apple-mobile-web-app-capable" content="yes">
        <script src="https://unpkg.com/konva@9/konva.min.js"></script>
    </head>
    <body>
        <div id="app"></div>
        <script>
            const stage = new Konva.Stage({
	      x: 0, 
	      y: 0, 
              container: 'app',
	      width: screen.width,
	      height: screen.height
            });

            const layer = new Konva.Layer();
            
	    const rect = new Konva.Rect({
	      x: 0,
	      y: 0,
	      width: 50,
	      height: 80,
	      fill: 'red',
	      name: 'rect',
              draggable: true
            });

            layer.add(rect);
            stage.add(layer);
        </script>
    </body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant