Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Using the text tool on firefox for android zooms page in

Open bjorn3 opened this issue 2 years ago • 5 comments

It isn't possible to zoom out again afterwards.

bjorn3 avatar Feb 12 '22 19:02 bjorn3

Even refreshing the page doesn't zoom out again. Had to open it in a new page.

bjorn3 avatar Feb 12 '22 19:02 bjorn3

@bjorn3 It sounds like a browser bug and I can't seem to replicate this. Does the following code also cause the issue?

<svg width="300px" height="300px">
  <g transform="scale(2)">
    <foreignObject width="100" height="100">
      <div style="color: black;" contenteditable>Hello world<div>
    </foreignObject>
  </g>
</svg>

0HyperCube avatar Feb 20 '22 09:02 0HyperCube

I also can't reproduce this on Firefox for Android.

Keavon avatar Feb 20 '22 10:02 Keavon

I can reproduce this by selecting the text tool, clicking somewhere, typing some text and then clicking somewhere else to dismiss the keyboard, clicking somewhere again to show the keyboard and in some cases repeating this a couple of times. I don't think it is a browser bug that it zooms in. This is behavior is useful when text fields are very small. The problem is that I can't zoom out again. I noticed that it doesn't happen when I disable allow zooming on all sites in the accessibility settings though.

bjorn3 avatar Feb 20 '22 12:02 bjorn3

@bjorn3 I meant that perhaps the not zooming out was a browser bug. I cannot seem to find where this behaviour is documented so I can't tell why this is happening.

0HyperCube avatar Feb 21 '22 08:02 0HyperCube

@bjorn3 could you please confirm if this is still a problem?

Keavon avatar Oct 21 '22 01:10 Keavon

Still happens

bjorn3 avatar Oct 21 '22 11:10 bjorn3

I think this might be fixed now as we no longer use a text input inside a foreign object. Would you mind testing this @bjorn3?

0HyperCube avatar Jul 01 '23 09:07 0HyperCube

It doesn't zoom in anymore, but now the virtual keyboard pops up and immediately disappears again. The statusbar is still in the state it should be when you can type text though.

bjorn3 avatar Jul 01 '23 11:07 bjorn3