element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.13k stars 1.98k forks source link

Cursor goes back to the beginning of the message when switching tabs #7080

Closed turt2live closed 5 years ago

turt2live commented 6 years ago

On riot.im/develop Chrome Windows 10:

  1. Type some words
  2. Click on a different tab
  3. Go back to Riot
  4. Notice your cursor isn't where you left it
t3chguy commented 6 years ago

So this is even weirder, sometimes its not at the beginning, I had it pop into the middle, it seems to be restoring the wrong selection state :/

turt2live commented 6 years ago

There's suggestions this is related to #7036

lampholder commented 6 years ago

Okay, on Windows 10 I reproduced (in each case 1. typing words, 2. switching browser tab, 3. returning to riot tab):

lampholder commented 6 years ago

Also, fwiw, on my mac:

lampholder commented 6 years ago

I've definitely been able to reproduce various brokennesses in the latest firefox, so I think this is not browser version specific. @turt2live do you have any more suggestions on how we can reproduce this reliably?

turt2live commented 6 years ago

while on Chrome 67.0.3396.99 (which while checking the version Chrome realized there's an update available - thanks chrome), all I had to do was switch tabs. It probably doesn't make a difference, but I was using the mouse to switch tabs.

t3chguy commented 5 years ago

Any chance this got fixed by various Slate updates?

turt2live commented 5 years ago

I can't reproduce it as easily as before, so assuming fixed. If it isn't fixed for someone, please comment here so this can be reopened.