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

View jumps to top of window when editing in Microsoft Edge #17255

Closed
Haldaug opened this issue Aug 29, 2019 · 18 comments · Fixed by #17707
Closed

View jumps to top of window when editing in Microsoft Edge #17255

Haldaug opened this issue Aug 29, 2019 · 18 comments · Fixed by #17707
Assignees
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Haldaug
Copy link

Haldaug commented Aug 29, 2019

Describe the bug
After installing the newest update of the Gutenberg plugin (version 6.4.0) this problem appears:

When editing text in blocks that are further down the page, the window scrolls to the top of the window.

If I disable the Gutenberg plugin and use the stock editor, the problem disappears.

To reproduce
Steps to reproduce the behavior:

  1. Edit a post
  2. Insert enough text so that the title scrolls out of view.
  3. Edit the text by typing any character.
  4. Observe that each time you press a key on the keyboard, the window scrolls to the top.

Expected behavior
I expect the window scroll position to stay put while I edit the text.

Screenshots
typewriter
Observe that the window scrolls to the top each time I type a character.

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Edge]
  • Version [44.17763.1.0]
@talldan talldan changed the title View jumps to top of window when editing i Microsoft Edge View jumps to top of window when editing in Microsoft Edge Aug 30, 2019
@talldan talldan added [Type] Bug An existing feature does not function as intended Browser Issues Issues or PRs that are related to browser specific problems Needs Testing Needs further testing to be confirmed. [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Aug 30, 2019
@blogger912
Copy link

I am having the same issue. Only way I can type is by deactivating Guttenberg.

@dugsteen
Copy link

Same. Anyone find a workaround?

@blogger912
Copy link

blogger912 commented Sep 17, 2019 via email

@tailoredanthony
Copy link

A client has reported this issue, so I've had a look. I confirm - getting this error in Edge, while Chrome & Firefox are both fine.

I reproduced by scrolling down so top of editor is no longer visible.
Then try to edit a paragraph block.
View jumps right to the top of the screen when I type.
However the cursor appears to be where I left it, and if I blindly keep typing, I can see those words when I scroll back down. But typing another letter jumps the view to the top again.

I tested this on a second client site in Edge too, and got the same problem. I don't use Edge as my daily driver, so not sure how common it is or if all sites are affected.

After seeing the error, I updated Gutenberg plugin to latest version (6.5), but this did not fix things.

I'll be advising the client to use a different browser for now, but this seems to be a major issue.

@kwight
Copy link

kwight commented Sep 30, 2019

I can confirm this issue is still valid as of 6.5.

@katiebethbrown
Copy link

Another report in #3416092-hc

every time I type on my blog it shakes.

Edge 18.18362 on Windows 10.0.0

@mriyazuddin
Copy link

Another such issue reported here: #2392945-zen

@ellatrix
Copy link
Member

ellatrix commented Oct 2, 2019

I can reproduce the bug in Browserstack. I'll have a look into it now.

@ellatrix
Copy link
Member

ellatrix commented Oct 2, 2019

The cause is the Typewriter component. I'll see if it can be fixed, otherwise it could be disabled for Edge in the meantime.

@ellatrix
Copy link
Member

ellatrix commented Oct 2, 2019

The problem is that Edge does not support the y property on a DOMRect: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect and https://developer.mozilla.org/en-US/docs/Web/API/DOMRect.

@ellatrix
Copy link
Member

ellatrix commented Oct 2, 2019

I'm surprised not more stuff is broken in Edge because of this. It also doesn't seem to support the DOMRect constructor.

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 2, 2019
@katiebethbrown
Copy link

katiebethbrown commented Oct 2, 2019

I just had another report of this.

Every time I start typing in a block, it moves to the bottom of the page and I can no longer see what i'm writing

Edge 18.17763 on Windows 10.0.0

@aliashoj
Copy link

This issue is still present on wp 5.3 and Mircosoft Edge, here. Happens on client's computer and in our office. Editing text causes the screen to jump to the top.

@vincepettit
Copy link

Two of my website authors are experiencing this in the latest release too in Edge.

@mft-dev
Copy link

mft-dev commented Nov 23, 2019

Seeing this on WP 5.3 in Edge (Microsoft Edge 44.18362.449.0, Microsoft EdgeHTML 18.18362)

@ScaryDBA
Copy link

You are not alone. I can validate this same issue. First time editing a WordPress blog post with a brand new laptop.

@ellatrix
Copy link
Member

The fix will be added to WP 5.3.1. In the meantime you could use the Gutenberg plugin.

@akshayhallur
Copy link

The issue is still there in WP 5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.